| edge.list {rgexf} | R Documentation |
Generates two data frames (nodes and edges) from a list of edges
edge.list(x)
x |
A matrix or data frame structured as a list of edges |
edge.list transforms the input into a two-elements list containing a dataframe of nodes (with columns “id” and “label”) and a dataframe of edges. The last one is numeric (with columns “source” and “target”) and based on autogenerated nodes' ids.
A list containing two data frames.
George Vega Yon george.vega@nodoschile.org,
Jorge Fabrega Lacoa jorge.fabrega@nodoschile.org
edgelist <- matrix(
c("matthew","john",
"max","stephen",
"matthew","stephen"),
byrow=TRUE, ncol=2)
edge.list(edgelist)