Scilab function

girth - girth of a directed graph

Calling Sequence

d = girth(g)

Parameters

Description

girth computes the length (number of arcs) of the shortest cycle in an unweighted directed graph g.

Examples