flesh out Graph.m class