Fix bad_alloc error when trying to use the node's method addEdge()
Fixed conflicts