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

isSink -- determines if a vertex of a digraph is a sink or not

Description

A vertex v of a Digraph D is a sink if v has no children

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

o2 = false
i3 : isSink (D,d)

o3 = true

See also

Ways to use isSink:

  • isSink(Digraph,Thing)

For the programmer

The object isSink is a method function.


The source of this document is in /build/reproducible-path/macaulay2-1.25.06+ds/M2/Macaulay2/packages/Graphs.m2:4647:0.