Skip to main content

triangles_per_node

Function triangles_per_node 

Source
pub fn triangles_per_node(graph: &Graph) -> HashMap<NodeId, u32>
Expand description

Counts triangles each node participates in.

§Arguments

  • graph - The graph

§Returns

HashMap mapping each node to the number of triangles it’s part of