permute.nodes: Permute the order of nodes in a graph

Description Usage Arguments Details Value

View source: R/s3-edgeList.R

Description

Randomize the order of the nodes in a graph.

Usage

1
permute.nodes(x, perm = NULL)

Arguments

x

Graph as edgeList object.

perm

Permutation to use.

Details

Useful for obfuscating the topological sort in a DAG, which is often the default output of methods that generate a random DAG. Output is graph isomorphic to input.

Value

Permuted graph as edgeList object.


itsrainingdata/sparsebnUtils documentation built on April 2, 2018, 8:27 p.m.