get_edges | R Documentation |
Get edge index of one or two networks
get_edges(net1, net2 = NULL, method = "union")
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.
|
a list with n vectors of length 2. The vectors represent the node index. n is the number of edges. The result can be provided to the edges
parameter of NetCompare
or NCT
to specify the edges that you want to test.
data("mtcars")
net1 <- quickNet(mtcars)
net2 <- quickNet(mtcars^3)
edges1 <- get_edges(net1)
edges2 <- get_edges(net1, net2, method = 'intersect')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.