next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Graphs :: vertices

vertices -- Returns the vertices of any type of grpah. .

Synopsis

Description

i1 : D = digraph({{c, {e,h}}, {a, {b,c}}, {d, {f}}, {e, {f,g}},
         {f, {}}, {g, {}}, {b,{d,e}}, {h, {}}})

o1 = Digraph{a => set {b, c}}
             b => set {d, e}
             c => set {e, h}
             d => set {f}
             e => set {f, g}
             f => set {}
             g => set {}
             h => set {}

o1 : Digraph
i2 : vertices D

o2 = {g, c, e, h, a, b, d, f}

o2 : List

Ways to use vertices :

  • vertices(Digraph)
  • vertices(MixedGraph)