reverse.edge: An Edge Reversal

Description Usage Arguments Value See Also Examples

Description

Reverse a directed edge between two vertices and check for acyclicity.

Usage

1
reverse.edge(nw, a, b)

Arguments

nw

mhnet network

a

First vertex (an arrow pointing from)

b

Second vertex (an arrow pointing from)

Value

mhnet network

See Also

add.edge, remove.edge

Examples

1
2
3
4
nw <- empty.network(LETTERS[1:4])
nw <- add.edge(nw, "A", "D")
reverse.edge(nw, "A", "D")
try(reverse.edge(nw, "D", "A"))

simecek/mhnet documentation built on May 29, 2019, 10:01 p.m.