pub fn triplet_count(g: &PyGraphView) -> usize
Expand description

Computes the number of both open and closed triplets within a graph

An open triplet, is one where a node has two neighbors, but no edge between them. A closed triplet is one where a node has two neighbors, and an edge between them.