first version of create graph
first version of create graph