Description Usage Arguments Value Author(s) See Also Examples
View source: R/reorder_vertices.R
Return a hypergraph in which the vertices have been reordered so that they are in the given order as columns of the incidence matrix.
1 | reorder_vertices(h,ord,decreasing=FALSE)
|
h |
a hypergraph. |
ord |
an ordering of the vertices. |
decreasing |
if |
a hypergraph.
David J. Marchette dmarchette@gmail.com
1 2 3 4 5 6 7 8 9 10 | h <- hypergraph_from_edgelist(list(3:7,8:12,c(1,3,9)))
k <- reorder_vertices(h)
hnames(h)
hnames(k)
h <- hypergraph_from_edgelist(list(letters[3:7],letters[8:12],
LETTERS[c(1,3,9)]))
k <- reorder_vertices(h)
hnames(h)
hnames(k)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.