pub fn count_triangles(view: &GraphView) -> usize
Triangle Counting
Returns total number of triangles in the graph. For undirected graphs, each triangle is counted once. For directed, we treat as undirected for counting.