void CreateEdges(NodeBase source) { // add edges to source while (source != null) { foreach (NodeBase n in outgoingEdges) { source.AddRelationship(n); } source = source.Parent; } outgoingEdges.Clear(); }