topo_sort_kahn: Return a sorted vector of nodes id

Description Usage Arguments Examples

Description

Return a sorted vector of nodes id

Usage

1
topo_sort_kahn(g, random = FALSE)

Arguments

g

An igraph graph object

random

Boolean, whether the order of selected nodes is randomised in the process

Examples

1
2
g0 <- igraph::graph_from_data_frame(data.frame(a = c("1", "2"), b = c("2", "3")))
topo_sort_kahn(g0)

clement-lee/mmsbmdag documentation built on May 31, 2019, 4:59 a.m.