Svag matchende rim for spanning-tree-algorithmus