next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Graphs :: descendants

descendants -- returns the descendants of a digraph



The descendants of a directed graph are all the vertexSet u of D such that u is reachable from v. Another way to more intuitively see what the descendants are is to see the descandants 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 descandants of v.

i1 : D = digraph({a,b,c,d,e},{{a,b},{b,c},{b,d},{e,b}});
i2 : descendants (D, a)

o2 = set {a, b, c, d}

o2 : Set

See also

Ways to use descendants :

For the programmer

The object descendants is a method function.