Add javadocs for Graph.