fgl-extras-decompositions-0.1.1.0: Graph decomposition algorithms

Safe HaskellNone
LanguageHaskell2010

Data.Graph.Inductive.Query.Ear

Description

Ear decomposition of a graph.

Synopsis

Documentation

ears :: forall gr. DynGraph gr => gr () () -> gr () Int Source

The ears function takes a graph with no node or edge annotation and produces an ear decomposition. Each edge is annotated with a weight. Edges with the same weight are in the same ear. Maon, Schieber, Vishkin (1986)

lca :: [[Node]] -> LEdge () -> LEdge Int Source

Lowest common ancestor calculation

swap12 :: (t1, t, t2) -> (t, t1, t2) Source

sel3 :: (t, t1, t2) -> t2 Source