unordered-graphs-0.1.0: Graph library using unordered-containers

Copyright(c) Ivan Lazar Miljenovic
LicenseMIT
MaintainerIvan.Miljenovic@gmail.com
Safe HaskellNone
LanguageHaskell2010

Data.Graph.Unordered.Algorithms.Components

Description

 

Synopsis

Documentation

components :: ValidGraph et n => Graph et n nl el -> [Graph et n nl el] Source

Calculate connected components of a graph; edge directionality doesn't matter.

getComponent :: ValidGraph et n => Graph et n nl el -> Maybe (Graph et n nl el, Graph et n nl el) Source

getComponentFrom :: ValidGraph et n => Context (AdjType et) n nl el -> Graph et n nl el -> (Graph et n nl el, Graph et n nl el) Source