Copyright | (c) Immanuel Albrecht 2020-202x |
---|---|
License | BSD-3 |
Maintainer | mail@immanuel-albrecht.de |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This module provides implementations of graphic matroids.
Synopsis
- data GraphicMatroid v a
- fromGraph :: (Ord a, Show a) => Set a -> (a -> (v, v)) -> GraphicMatroid v a
- namedFromGraph :: Ord a => String -> Set a -> (a -> (v, v)) -> GraphicMatroid v a
- fromGraph' :: Ord a => Set a -> (a -> (v, v)) -> GraphicMatroid v a
- mK :: Int -> GraphicMatroid Int (Int, Int)
Documentation
data GraphicMatroid v a Source #
data type representing the cycle matroid (aka. polygon matroid) of a (multi-)graph
Instances
(Ord a, Ord v, Show a) => Matroid (GraphicMatroid v) a Source # | |
Defined in Data.Matroid.Graphic groundset :: GraphicMatroid v a -> Set a Source # showName :: GraphicMatroid v a -> String Source # rk :: GraphicMatroid v a -> Set a -> Int Source # indep :: GraphicMatroid v a -> Set a -> Bool Source # basis :: GraphicMatroid v a -> Set a -> Set a Source # cl :: GraphicMatroid v a -> Set a -> Set a Source # abstract :: GraphicMatroid v a -> AMatroid a Source # dual :: GraphicMatroid v a -> AMatroid a Source # restriction :: GraphicMatroid v a -> Set a -> AMatroid a Source # contraction :: GraphicMatroid v a -> Set a -> AMatroid a Source # loops :: GraphicMatroid v a -> Set a Source # coRk :: GraphicMatroid v a -> Set a -> Int Source # coloops :: GraphicMatroid v a -> Set a Source # | |
Show a => Show (GraphicMatroid v a) Source # | |
Defined in Data.Matroid.Graphic showsPrec :: Int -> GraphicMatroid v a -> ShowS # show :: GraphicMatroid v a -> String # showList :: [GraphicMatroid v a] -> ShowS # |
:: (Ord a, Show a) | |
=> Set a | set of edges of the (multi-)graph |
-> (a -> (v, v)) | map that maps the edge e to the set of its incident vertices {u,v}; the order is ignored, and {v} is represented by (v,v) |
-> GraphicMatroid v a |
constructs a GraphicMatroid
from a set of (abstract) edges and the incident-vertex map
:: Ord a | |
=> String | name of the matroid |
-> Set a | set of edges of the (multi-)graph |
-> (a -> (v, v)) | map that maps the edge e to the set of its incident vertices {u,v}; the order is ignored, and {v} is represented by (v,v) |
-> GraphicMatroid v a |
constructs a named GraphicMatroid
from a set of (abstract) edges and the incident-vertex map
:: Ord a | |
=> Set a | set of edges of the (multi-)graph |
-> (a -> (v, v)) | map that maps the edge e to the set of its incident vertices {u,v}; the order is ignored, and {v} is represented by (v,v) |
-> GraphicMatroid v a |
constructs an unnamed GraphicMatroid
from a set of (abstract) edges and the incident-vertex map