postorder: Postorder of a Graph

View source: R/igraph.R

postorderR Documentation

Postorder of a Graph

Description

Given a graph, this function returns the order the vertices are exited in a depth-first traversal.

Usage

postorder(g, root)

Arguments

g

(igraph) The graph.

root

(integer) A vertex where the traversal should start.

Details

A postorder is not always unique. For an acyclic graph, reversed postorder is equivalent to a topological sort.

Value

(integer) A postorder of the graph.


nick-ulle/ast documentation built on May 14, 2024, 7:40 p.m.