IntGraph-0.1.1.0: Dynamically sized graph library

Safe HaskellSafe
LanguageHaskell2010

Data.IntGraph.Undirected.Algorithms

Synopsis

Documentation

vertexCoverDec :: IntGraph -> Int -> Maybe [Node] Source #

If there is a vertex cover of size k, returns the vertex cover | Otherwise Nothing | O(n*2^k)

vertexCoverBool :: IntGraph -> Int -> Bool Source #

vertexCoverDec, but just returns true or false

vertexCover :: IntGraph -> [Node] Source #

Optimal vertex cover | Not all that efficient, just keeps trying difference values for k