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

Description Usage Arguments Details Value

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 June 5, 2019, 5:43 p.m.