graph creation partial