add graph.m