topologically_ordering: Topological ordering

View source: R/graph_utils.R

topologically_orderingR Documentation

Topological ordering

Description

Order rows/columns of a adjacency matrix topologically

Usage

topologically_ordering(adja_mat, alt = FALSE)

Arguments

adja_mat

Adjacency matrix of network

alt

Use igraph implementation

Value

topologically ordered matrix

Examples

adj <- matrix(c(0,1,0,0,0,1,0,0,0),3,3)
topologically_ordering(adj)

cbg-ethz/dce documentation built on Oct. 29, 2022, 8:14 a.m.