swap: swap

Description Usage Arguments Value Examples

Description

Swaps the given structure between portals. Mainly for use in optimizeWeb.

Usage

1
swap(g, i, j)

Arguments

g

a web

i

numeric: index of first portal to be swapped

j

numeric: index of second portal to be swapped

Value

the modified web

Examples

1
2
3
4
5
par(mfrow=c(1,2))
g <- fishbone(8)
plot(g)
gs <- swap(g, 1, 3)
plot(gs)

SigbertIngress/findWeb documentation built on May 26, 2019, 4:38 p.m.