topological.sort: Topological sorting of vertices in a graph

View source: R/structural.properties.R

topological.sortR Documentation

Topological sorting of vertices in a graph

Description

[Deprecated]

topological.sort() was renamed to topo_sort() to create a more consistent API.

Usage

topological.sort(graph, mode = c("out", "all", "in"))

Arguments

graph

The input graph, should be directed

mode

Specifies how to use the direction of the edges. For “out”, the sorting order ensures that each node comes before all nodes to which it has edges, so nodes with no incoming edges go first. For “⁠in⁠”, it is quite the opposite: each node comes before all nodes from which it receives edges. Nodes with no outgoing edges go first.


igraph documentation built on Oct. 20, 2024, 1:06 a.m.