impure-containers-0.3: Mutable containers in haskell

Safe HaskellNone
LanguageHaskell2010

Data.Graph.Types

Synopsis

Documentation

newtype Graph g e v Source #

Constructors

Graph 

Instances

Functor (Graph g e) Source # 

Methods

fmap :: (a -> b) -> Graph g e a -> Graph g e b #

(<$) :: a -> Graph g e b -> Graph g e a #

data SomeGraph e v Source #

The neighbor vertices and neighbor edges must have equal length.

TODO: enforce that the inner vectors for the neighbors are ordered. This will make testing for neighbors easier and will make an equality check easier.

Instances

Functor (SomeGraph e) Source # 

Methods

fmap :: (a -> b) -> SomeGraph e a -> SomeGraph e b #

(<$) :: a -> SomeGraph e b -> SomeGraph e a #

newtype Size g Source #

Constructors

Size 

Fields

newtype Vertex g Source #

Constructors

Vertex 

Instances

Eq (Vertex g) Source # 

Methods

(==) :: Vertex g -> Vertex g -> Bool #

(/=) :: Vertex g -> Vertex g -> Bool #

Ord (Vertex g) Source # 

Methods

compare :: Vertex g -> Vertex g -> Ordering #

(<) :: Vertex g -> Vertex g -> Bool #

(<=) :: Vertex g -> Vertex g -> Bool #

(>) :: Vertex g -> Vertex g -> Bool #

(>=) :: Vertex g -> Vertex g -> Bool #

max :: Vertex g -> Vertex g -> Vertex g #

min :: Vertex g -> Vertex g -> Vertex g #

Hashable (Vertex g) Source # 

Methods

hashWithSalt :: Int -> Vertex g -> Int #

hash :: Vertex g -> Int #

newtype Vertices g v Source #

Constructors

Vertices 

Instances

Functor (Vertices g) Source # 

Methods

fmap :: (a -> b) -> Vertices g a -> Vertices g b #

(<$) :: a -> Vertices g b -> Vertices g a #

newtype MVertices g s v Source #

Constructors

MVertices 

newtype MUVertices g s v Source #

Constructors

MUVertices 

data MGraph g s e v Source #

Constructors

MGraph