graph_manipulate | R Documentation |
functions to manipulate a graph
reorder_edges(g, attr, desc = TRUE)
g |
igraph object |
attr |
edge attribute name used to sort edges |
desc |
logical. sort in descending (default) or ascending order |
reorder_edges()
allows to reorder edges according to an attribute so that edges are
drawn in the given order.
manipulated graph
David Schoch
library(igraph)
g <- sample_gnp(10, 0.5)
E(g)$attr <- 1:ecount(g)
gn <- reorder_edges(g,"attr")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.