First version of graph