zxcalc/quizx

GraphLike.component_vertices has duplicate vertices in its components

Closed this issue · 0 comments

When v has two neighbours w1 and w2 that are both connected, then w2 will be added twice tocomps[i]. An easy solution would be to change the type of comps to be a set instead of an array, or to sort the vertices at the end and dedup() them.