math-grads-0.1.6.7: Library containing graph data structures and graph algorithms

Safe HaskellNone
LanguageHaskell2010

Math.Grads.Algo.Cycles

Description

Module that provides functions for analysis of graph's cycles.

Synopsis

Documentation

findCycles :: Ord e => EdgeList e -> [EdgeList e] Source #

Takes EdgeList and finds non-redundant set of conjugated simple cycles. Cycles sharing in common one edge are considered to be one cycle. BondList must obey rule (b, e, _) b < e.

findSimpleCycles :: Eq e => EdgeList e -> [EdgeList e] Source #

Finds all simple cycles in fused cycles system.

findLocalCycles :: Eq e => EdgeList e -> [EdgeList e] Source #

Finds all cycles of minimal length contained in system of conjugated cycles.

getCyclic :: GenericGraph v e -> Set Int Source #

Returns the set of all vertices which belong to any cycle.

isEdgeInCycle :: Ord e => EdgeList e -> Int -> Bool Source #

Checks that edge with given index in EdgeList is contained in any cycle.