public void appendChildrenNodes() { var GraphOps = new GraphOperations(); foreach (var cNode in GraphOps.showNeighborNodes(Id)) { if (cNode.Id != Parent) { cNode.Parent = Id; cNode.ParentName = Name; Children.Add(cNode); } } }