Copyright | (C) Frank Staals |
---|---|
License | see the LICENSE file |
Maintainer | Frank Staals |
Safe Haskell | None |
Language | Haskell2010 |
Data types that to represent a planar graph as Adjacency Lists. The main purpose is to help encodedecode a PlanarGraph as a JSONYAML file.
Documentation
Data type representing the graph in its JSON/Yaml format
Gr | |
|
Instances
Bifunctor Gr Source # | |
Generic (Gr v f) Source # | |
(ToJSON v, ToJSON f) => ToJSON (Gr v f) Source # | |
Defined in Data.PlanarGraph.AdjRep | |
(FromJSON v, FromJSON f) => FromJSON (Gr v f) Source # | |
type Rep (Gr v f) Source # | |
Defined in Data.PlanarGraph.AdjRep type Rep (Gr v f) = D1 ('MetaData "Gr" "Data.PlanarGraph.AdjRep" "hgeometry-combinatorial-0.12.0.0-VIzkyOvE5y1mf3MPLhQ6V" 'False) (C1 ('MetaCons "Gr" 'PrefixI 'True) (S1 ('MetaSel ('Just "adjacencies") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [v]) :*: S1 ('MetaSel ('Just "faces") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [f]))) |
A vertex, represented by an id, its adjacencies, and its data.
Instances
Bifunctor Vtx Source # | |
Generic (Vtx v e) Source # | |
(ToJSON v, ToJSON e) => ToJSON (Vtx v e) Source # | |
Defined in Data.PlanarGraph.AdjRep | |
(FromJSON v, FromJSON e) => FromJSON (Vtx v e) Source # | |
type Rep (Vtx v e) Source # | |
Defined in Data.PlanarGraph.AdjRep type Rep (Vtx v e) = D1 ('MetaData "Vtx" "Data.PlanarGraph.AdjRep" "hgeometry-combinatorial-0.12.0.0-VIzkyOvE5y1mf3MPLhQ6V" 'False) (C1 ('MetaCons "Vtx" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "adj") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(Int, e)]) :*: S1 ('MetaSel ('Just "vData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 v)))) |
Faces
Face | |
|
Instances
Functor Face Source # | |
Generic (Face f) Source # | |
ToJSON f => ToJSON (Face f) Source # | |
Defined in Data.PlanarGraph.AdjRep | |
FromJSON f => FromJSON (Face f) Source # | |
type Rep (Face f) Source # | |
Defined in Data.PlanarGraph.AdjRep type Rep (Face f) = D1 ('MetaData "Face" "Data.PlanarGraph.AdjRep" "hgeometry-combinatorial-0.12.0.0-VIzkyOvE5y1mf3MPLhQ6V" 'False) (C1 ('MetaCons "Face" 'PrefixI 'True) (S1 ('MetaSel ('Just "incidentEdge") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Int, Int)) :*: S1 ('MetaSel ('Just "fData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 f))) |