creating nodes,edges