The function converts a graph into a edge list data.frame
A graph object of class
Logical. If TRUE (default), then the column 'link' of the output data.frame contains the weights of the links. If FALSE, it contains only 0 and 1.
The 'graph' nodes must have names. Links must have weights if 'weight = TRUE'.
An object of class
data.frame with a link ID, the origin nodes
('from') and arrival nodes ('to') and the link
value ('link')(weighted or binary)
1 2 3 4 5 6 7 8 9 10
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.