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

HGraph.Directed.Subgraph

Synopsis

Documentation

contains :: (Adjacency t, Adjacency t, DirectedGraph t, DirectedGraph t) => t a -> t a -> Bool Source #

Whether d contains h as a subgraph (the identity is used for the isomorphism).

isSubgraphOf :: (Adjacency t, Adjacency t, Ord k2, Ord a, DirectedGraph t, DirectedGraph t) => t k2 -> t a -> Bool Source #

Whether h is isomorphic to some subgraph of d.

subgraphIsomorphism :: (Adjacency t, Adjacency t, Ord k2, Ord a, DirectedGraph t, DirectedGraph t) => t a -> t k2 -> Maybe (Map k2 a) Source #

Find an isomorphism from h to some subgraph of d, if it exists.

isSubgraphIsomorphism :: (DirectedGraph t, Ord a, Adjacency t, Adjacency t) => t a -> t a -> Map a a -> Bool Source #

Whether phi is a subgraph isomorphism from h to some subgraph of d.

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

Enumerate all subgraphs of d which are isomorphic to h