pub fn triangles_per_node(graph: &Graph) -> HashMap<NodeId, u32>
Counts triangles each node participates in.
graph
HashMap mapping each node to the number of triangles it’s part of