swap_targets: Swap targets between a pair of edges

Description Usage Arguments Value

View source: R/swap_targets.R

Description

Given two directed edges a->b and c->d, return a->d and c->b.

Usage

1
swap_targets(edges)

Arguments

edges

A 2x2 matrix. Each column is an edge defined by a source (row 1) and target (row 2) vertex.

Value

A matrix with the same dimensions as edges, but with


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