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

directedGraph -- creating a directed graph

Synopsis

Description

This function allows one to create a directed graph by defining the vertices and directed edges between them.
i1 : V = {a,b,c,d};
i2 : E = {(a,b), (a,c), (c,d)};
i3 : G = directedGraph (V,E)

o3 = DirectedGraph{cache => CacheTable                      }
                   DirectedEdges => {(a, b), (a, c), (c, d)}
                   Vertices => {a, b, c, d}

o3 : DirectedGraph

See also

Ways to use directedGraph :