family | R Documentation |
The usual familial relations between vertices in mixed graphs.
pa(graph, v, sort = 1)
ch(graph, v, sort = 1)
sp(graph, v, sort = 1)
sib(graph, v, sort = 1)
nb(graph, v, sort = 1)
anc(graph, v, sort = 1)
dec(graph, v, sort = 1)
ant(graph, v, sort = 1)
nhd(graph, v, sort = 1)
dis(graph, v, sort = 1, fast = FALSE)
graph |
|
v |
collection of vertices |
sort |
integer:1 for unique but unsorted, 2 for sorted (0 for possibly repeated and unsorted). If edges are stored as a matrix then output will always be unique and sorted. |
fast |
optionally opt for a faster metod with adjacency matrices or lists |
pa
, ch
, sp
and nb
find the
parents, children, spouses and neighbours of v
respectively.
anc
, dec
, ant
, dis
, nhd
finds the ancestors
descendants, anterior, district and neighbourhood of v
respectively.
pa()
: find parents of vertices
ch()
: find children of vertices
sp()
: find spouses (siblings) of vertices
sib()
: find siblings (spouses) of vertices
nb()
: find undirected neighbours of vertices
anc()
: find ancestors of vertices
dec()
: find descendants of vertices
ant()
: find anterior vertices
nhd()
: find neighbourhood of vertices
dis()
: find district of vertices
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.