Macaulay2 » Documentation
Packages » Graphs :: children
next | previous | forward | backward | up | index | toc

children -- returns the children of a vertex of a digraph



The children of v are the all the vertices u such that {v,u} is in the edge set of the digraph D. So the children of a vertex v are exactly those vertices on a directed graph that v points to.

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

o2 = set {c, d}

o2 : Set

See also

Ways to use children :

For the programmer

The object children is a method function.