Create graph data structure