Skip to content

Fast label propagation is extremely slow on some inputs (possible infinite loop) #2608

@szhorvat

Description

@szhorvat

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:

image

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.

image

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.

Metadata

Metadata

Assignees

Labels

fuzzIssues found using fuzzing, or related to fuzzing

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions