morphEdges: Transform edges to different type

View source: R/mutilate.R

morphEdgesR Documentation

Transform edges to different type

Description

Transform edges to different type

Usage

morphEdges(graph, from, to, A, B, topOrd)

Arguments

graph

mixedgraph object

from

character vector of edges to transform (default is all)

to

character string of new edge type

A

optional subset within which to restrict changes

B

optional further subset to change edges from A

topOrd

optional topological order for directing edges

Details

Calling this function with neither A nor B simply changes all edges (of type from if specified) to those of type to (which must be a single entry). If A is specified, then the change is only made to edges within the set A. If a set B is also specified, then the change is only made to edges between the sets A and B.

If to is a directed edge then this is done according to the topological order topOrd if supplied, otherwise the existing ordering of the vertices is used.


rje42/MixedGraphs documentation built on March 20, 2024, 8:09 a.m.