Question: There is a function in the KnoxOR`Graphs` package called This command returns a list of all children of vertices in the given list of parents,
There is a function in the KnoxOR`Graphs` package called
![(**** FindChildren [adjmatrix,parentlist] ****)](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1715/9/4/0/56666472cd6b543c1715940567205.jpg)
This command returns a list of all children of vertices in the given list of parents, where adjmatrix is the adjacency matrix of a directed graph and a vertex \(v\) is a child of a vertex \(u\) iff there is an edge \((u, v)\) in the graph. Revise the Components function of Section 1.1 using FindChildren to produce a function called Descendants[adjmatrix, vertex] that returns the set of all vertices reachable by some path from the given vertex in the directed graph characterized by the given adjacency matrix. For each vertex in the graph of Figure 1.11, use the Descendants function to find the set of all descendants of that vertex.



(**** FindChildren [adjmatrix,parentlist] ****)
Step by Step Solution
3.39 Rating (161 Votes )
There are 3 Steps involved in it
The only thing necessary to change in the Components algorithm is ... View full answer
Get step-by-step solutions from verified subject matter experts
