Description Usage Arguments Value
View source: R/rewire_targets.R
Mutate the graph to swap targets between a pair of edges
1 2 3 4 5 6 7 | rewire_targets(x, ...)
## S3 method for class 'matrix'
rewire_targets(x, edges)
## S3 method for class 'igraph'
rewire_targets(g, edges)
|
x |
An adjacency matrix |
edges |
A matrix where each column is a source->destination ordered pair representing an edge. |
g |
An igraph object |
A mutated version of the graph.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.