Added statistics for undirected graphs.