networks
tail
finds the tail of a directed edge
Calling Sequence
Parameters
Description
Examples
tail(G)
tail(e, G)
tail(eset, G)
G
-
graph or network
e
edge of G
eset
set or list of edges of G
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](...).
with⁡networks:
new⁡G:
addvertex⁡1,2,3,4,5,G:
addedge⁡1,2,2,3,3,4,4,5,G
e1,e2,e3,e4
addedge⁡1,5,G
e5
tail⁡,G
tail⁡G
table⁡e4=4,e2=2,e1=1,e3=3
tail⁡e1,e2,e5,G
1,2
See Also
GraphTheory
networks(deprecated)[edges]
networks(deprecated)[incident]
with
Download Help Document