graph creation