https://www.geeksforgeeks.org/number-of-triangles-in-directed-and-undirected-graphs/