Creation of graph.