autocurve.edges

0th

Percentile

Optimal edge curvature when plotting graphs

If graphs have multiple edges, then drawing them as straight lines does not show them when plotting the graphs; they will be on top of each other. One solution is to bend the edges, with diffenent curvature, so that all of them are visible.

Keywords
graphs
Usage
autocurve.edges (graph, start = 0.5)
Arguments
graph
The input graph.
start
The curvature at the two extreme edges. All edges will have a curvature between -start and start, spaced equally.
Details

autocurve.edges calculates the optimal edge.curved vector for plotting a graph with multiple edges, so that all edges are visible.

Value

  • A numeric vector, its length is the number of edges in the graph.

See Also

igraph.plotting for all plotting parameters, plot.igraph, tkplot and rglplot for plotting functions.

Aliases
  • autocurve.edges
Examples
g <- graph( c(0,1,1,0,1,2,1,3,1,3,1,3,
              2,3,2,3,2,3,2,3,0,1)+1 )

autocurve.edges(g)

set.seed(42)
plot(g)
Documentation reproduced from package igraph, version 0.6.5-2, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.