예제 #1
0
        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);
                }
            }
        }
예제 #2
0
        public List <Node> FindPath(int startId, int finishId)
        {
            var go = new GraphOperations();

            return(go.findPath(startId, finishId));
        }