implement displayGraph so multigraphs now work