OSS-Fuzz found a testcase on which fast label propagation does not seem to finish (didn't finish after 5 min).
The affected fuzz target is community, which currently uses an unweighted directed graph.
Profiling result after one minute:
Minimized testcase is attached: slow_good.zip
This is a multigraph with a triangle, a self-loop, and lots of isolated vertices (not shown below). Notice that only one side of the triangle is unidirectional, both others being bidirectional. So this might not be a trivial case of labels running around a circle.
Edge list with 0-based indexing:
49 50
49 55
50 49
50 49
50 50
55 49
55 50
55 50
55 50
The issue affects only IGRAPH_LPA_FAST, not IGRAPH_LPA_RETENTION or IGRAPH_LPA_DOMINANCE.
OSS-Fuzz found a testcase on which fast label propagation does not seem to finish (didn't finish after 5 min).
The affected fuzz target is
community, which currently uses an unweighted directed graph.Profiling result after one minute:
Minimized testcase is attached: slow_good.zip
This is a multigraph with a triangle, a self-loop, and lots of isolated vertices (not shown below). Notice that only one side of the triangle is unidirectional, both others being bidirectional. So this might not be a trivial case of labels running around a circle.
Edge list with 0-based indexing:
The issue affects only
IGRAPH_LPA_FAST, notIGRAPH_LPA_RETENTIONorIGRAPH_LPA_DOMINANCE.