Remove Graph.statistics and GraphImpl.printLineage
Make Graph{,Impl,Ops} serializable to work around capture
Fix infinite loop in GraphGenerators.generateRandomEdges

The loop occurred when numEdges < numVertices. This commit fixes it by
allowing generateRandomEdges to generate a multigraph.
Fix Pregel SSSP example in programming guide