order_gen: Generate all topological orderings

View source: R/order_gen.R

order_genR 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

\insertRef

combinatSEset

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])

SEset documentation built on March 18, 2022, 5:51 p.m.