networks(deprecated)/head - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


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

networks

  

head

  

find the head of a directed edge

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

head(G)

head(e, G)

head(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 GraphTheoryinstead.

• 

If a single argument G is passed then a table is returned.

• 

If a single edge e is passed the either the head of e or NULL is returned depending on whether or not e is directed.

• 

If a set of edges eset is passed then a set or list of head vertices is returned.

• 

This routine is normally loaded via the command with(networks) but may also be referenced using the full name networks[head](...).

Examples

Important:The networks package has been deprecated. Use the superseding pakcage GraphTheoryinstead.

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)

head,G

headG

tablee3=4,e1=2,e2=3,e4=5

(3)

heade1,e2,e5,G

2,3

(4)

See Also

GraphTheory

networks(deprecated)[edges]

networks(deprecated)[ends]

networks(deprecated)[incident]

networks(deprecated)[tail]

with