fix adding nodes to edge
addition edges to graph. frontend