descendents (G,v)
descendants (G,v)
The descendants of v are the all the vertices u such that u is reachable from v in the directed edge set of the MixedGraph G. Another way to more intuitively see what the descendants are is to see the descendants of a vertex v can be found by first taking the children of v. Then if you take the children of each of the children, and continue the process until the list stops growing, this will form all the descendants of v.
The output also includes the vertex v from the input in the set of the descendants.
|
|
|
|