charVecToEdgelist {mcMST} | R Documentation |
Convert characteristic vector to edge list.
Description
Convert characteristic vector to edge list.
Usage
charVecToEdgelist(charvec)
Arguments
charvec |
[ |
Value
[matrix
] Edge list.
See Also
Other transformation functions:
edgeListToCharVec()
,
nodelistToEdgelist()
,
permutationToCharVec()
,
permutationToEdgelist()
,
prueferToCharVec()
,
prueferToEdgeList()
Examples
# 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))
[Package mcMST version 1.1.1 Index]