plotGraph revision

modify graph.length