#376 Fixed dangling edges resulting from duplciate node creation. This is the tiniest change, but it took a while to research and understand it.