hgraph-1.10.0.0: Tools for working on (di)graphs.
Safe HaskellSafe-Inferred
LanguageHaskell2010

HGraph.Directed.Packing.Cycles.Internal

Synopsis

Documentation

arcMaximumI :: (DirectedGraph t, Adjacency t, Mutable t) => t Int -> ([[Int]], Int) Source #

A packing of pairwise arc-disjoint cycles of maximum size.

maximum :: (DirectedGraph t, Mutable t, Adjacency t) => t a -> ([[a]], Int) Source #

Computes a packing of pairwise disjoint cycles of maximum size.

maximumI :: (DirectedGraph t, Mutable t, Adjacency t) => t Int -> ([[Int]], Int) Source #

Computes a packing of pairwise disjoint cycles of maximum size. Vertices of the input digraph must be labeled with integers from `0` to `n - 1`.

guessArc :: (DirectedGraph t, Adjacency t, Mutable t) => t Int -> Int -> (Int, Int) -> Maybe ([[Int]], Int) Source #

packArc :: (DirectedGraph t, Mutable t, Adjacency t) => t Int -> Int -> [Int] -> Int -> (Int, Int) -> Maybe ([[Int]], Int) Source #