View source: R/transformations.R
charVecToEdgelist | R Documentation |
Convert characteristic vector to edge list.
charVecToEdgelist(charvec)
charvec |
[ |
[matrix
] Edge list.
Other transformation functions:
edgeListToCharVec()
,
nodelistToEdgelist()
,
permutationToCharVec()
,
permutationToEdgelist()
,
prueferToCharVec()
,
prueferToEdgeList()
# here we generate a random Pruefer-code representing
# a random spanning tree of a graph with n = 10 nodes
pcode = sample(1:10, 8, replace = TRUE)#'
edgelist = charVecToEdgelist(prueferToCharVec(pcode))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.