order_gen {SEset}R Documentation

Generate all topological orderings

Description

Takes a matrix and generates a matrix containing all orderings of the rows and columns

Usage

order_gen(omega)

Arguments

omega

input p-dimensional square matrix

Value

a p \times p! matrix of dimension orderings. Each column represents an ordering of dimension names as character strings.

References

Chasalow S (2012). combinat: combinatorics utilities. R package version 0.0-8, https://CRAN.R-project.org/package=combinat.

See Also

reorder_mat, network_to_SEset

Examples

data(riskcor)
orderings <- order_gen(riskcor)

# Each column of orderings defines an ordering of variables
print(orderings[,1])
# in the second element, the fifth and sixth variable are switched
print(orderings[,2])

[Package SEset version 1.0.1 Index]