 networks(deprecated)/tail - Maple Help

networks

 tail
 finds the tail of a directed edge Calling Sequence tail(G) tail(e, G) tail(eset, G) Parameters

 G - graph or network e - edge of G eset - set or list of edges of G Description

 • Important: The networks package has been deprecated.Use the superseding package GraphTheory instead.
 • If only G is passed then a table indexed by edges and recording the vertices at the tail of selected edges is returned. The table is part of the graph data structure and is automatically maintained by procedures such as addedge() and delete().
 • If the first argument is a directed  edge e then the tail of e is returned.  For undirected edges the result is NULL.
 • The routine maps automatically onto a set or list of vertices when the first argument is a set or list.
 • It is normally loaded via the command with(networks) but may also be referenced using the full name networks[tail](...). Examples

Important: The networks package has been deprecated.Use the superseding package GraphTheory instead.

 > $\mathrm{with}\left(\mathrm{networks}\right):$
 > $\mathrm{new}\left(G\right):$
 > $\mathrm{addvertex}\left(1,2,3,4,5,G\right):$
 > $\mathrm{addedge}\left(\left[\left[1,2\right],\left[2,3\right],\left[3,4\right],\left[4,5\right]\right],G\right)$
 ${\mathrm{e1}}{,}{\mathrm{e2}}{,}{\mathrm{e3}}{,}{\mathrm{e4}}$ (1)
 > $\mathrm{addedge}\left(\left\{1,5\right\},G\right)$
 ${\mathrm{e5}}$ (2)
 > $\mathrm{tail}\left(,G\right)$
 > $\mathrm{tail}\left(G\right)$
 ${table}{}\left(\left[{\mathrm{e3}}{=}{3}{,}{\mathrm{e1}}{=}{1}{,}{\mathrm{e2}}{=}{2}{,}{\mathrm{e4}}{=}{4}\right]\right)$ (3)
 > $\mathrm{tail}\left(\left[\mathrm{e1},\mathrm{e2},\mathrm{e5}\right],G\right)$
 $\left[{1}{,}{2}\right]$ (4)