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); } } }
public List <Node> FindPath(int startId, int finishId) { var go = new GraphOperations(); return(go.findPath(startId, finishId)); }