get_edges_df | R Documentation |
Get data frame of edges and weights of one or two networks
get_edges_df(net1, net2 = NULL, method = "union", labels = NULL)
net1 |
a network. Should be either the product of |
net2 |
alternative. a network. Should be either the product of |
method |
only works when net2 is provided.
|
labels |
the name of each node. If provided, the nodes will be named by labels. |
a data frame with 3 columns. The vectors in from and to represent the node index.
data("mtcars")
net1 <- quickNet(mtcars)
net2 <- quickNet(mtcars^3)
edges1 <- get_edges_df(net1)
edges2 <- get_edges_df(net1, net2, method = 'intersect')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.