snap-stanford / snap

Stanford Network Analysis Platform (SNAP) is a general purpose network analysis and graph mining library.
Other
2.17k stars 797 forks source link

Ignore self loops in temporal motifs counting. #120

Closed arbenson closed 6 years ago

arbenson commented 6 years ago

A bug was reported on the counts of temporal motifs. The cause was the inclusion of self-loops, which should not contribute towards the counts of temporal motifs (as defined for this implementation). This pull request fixes this issue.