rewire_targets: Mutate the graph to swap targets between a pair of edges

Description Usage Arguments Value

View source: R/rewire_targets.R

Description

Mutate the graph to swap targets between a pair of edges

Usage

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)

Arguments

x

An adjacency matrix

edges

A matrix where each column is a source->destination ordered pair representing an edge.

g

An igraph object

Value

A mutated version of the graph.


crcox/latticize documentation built on Dec. 19, 2021, 6:19 p.m.