graph_manipulate: Manipulate graph

Description Usage Arguments Details Value Author(s) Examples

Description

functions to manipulate a graph

Usage

1
reorder_edges(g, attr, desc = TRUE)

Arguments

g

igraph object

attr

edge attribute name used to sort edges

desc

logical. sort in descending (default) or ascending order

Details

reorder_edges() allows to reorder edges according to an attribute so that edges are drawn in the given order.

Value

manipulated graph

Author(s)

David Schoch

Examples

1
2
3
4
5
6
library(igraph)
library(ggraph)

g <- sample_gnp(10,0.5)
E(g)$attr <- 1:ecount(g)
gn <- reorder_edges(g,"attr")

schochastics/graphlayouts documentation built on March 14, 2020, midnight