clean example code to keep only simple graph with non directed arcs (links), start on ability to center graph on node