pub fn graph_density(graph: &Graph) -> f64
Graph density: |E| / (|V| * (|V| - 1)) for directed graphs.
|E| / (|V| * (|V| - 1))