networks(deprecated)/tail - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : networks(deprecated)/tail

networks

  

tail

  

finds the tail of a directed edge

 

Calling Sequence

Parameters

Description

Examples

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.

withnetworks:

newG:

addvertex1,2,3,4,5,G:

addedge1,2,2,3,3,4,4,5,G

e1,e2,e3,e4

(1)

addedge1,5,G

e5

(2)

tail,G

tailG

tablee4=4,e2=2,e1=1,e3=3

(3)

taile1,e2,e5,G

1,2

(4)

See Also

GraphTheory

networks(deprecated)[edges]

networks(deprecated)[incident]

with