Determining the number of 4-vertex subgraphs in a massive undirected graph without counting all of the subgraphs. Implemented in Java.