Beispiel #1
0
        public static void FindAllLeafChildAux(int parentNodeId, DependencyMatrix dependencyMatrix, List <int> listOfLeafChild)
        {
            List <int> childListOfTheParent = dependencyMatrix.GetToChildDependencyList(parentNodeId);

            childListOfTheParent.ForEach(child => {
                if (dependencyMatrix.GetToChildDependencyList(child).Count() == 0)
                {
                    listOfLeafChild.Add(child);
                }
                else
                {
                    FindAllLeafChildAux(child, dependencyMatrix, listOfLeafChild);
                }
            });
        }