analyze the graph