basic creation of graph