networks[head] - find the head of a directed edge
|
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
|
|
•
|
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.
>
|
|
>
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
>
|
|
| (3) |
>
|
|
| (4) |
|
|
Download Help Document
Was this information helpful?