Added a new utility method to compute number of mutual edges in a graph.