Reading the graph. Step-1.