newConnection = conn.getNode2();
} else {
newConnection = conn.getNode1();
}
Element.Edge newEdge = newElement.getRelatedEdge(newConnection.getData());
newNode.addEdge(newConnection, newEdge);
for (Node<Element, Element.Edge> node : post) {
Element element = node.getData();
if (element.isRelated(newElement)) {
Element.Edge elementEdge = newElement.getRelatedEdge(element);
newNode.addEdge(node, elementEdge);