com.raphtory.algorithms.generic.motif.GlobalTriangleCount
GlobalTriangleCount
GlobalTriangleCount()
Returns the total number of undirected triangles in the graph.
States
triangleCount: Int
the number of triangles in the graph (treated as undirected and simple).
Returns
total triangles |
---|
|
Note
Edges here are treated as undirected, so if the underlying network is directed here, ‘neighbours’ refers to the union of in-neighbours and out-neighbours. ``