graphs-0.7.2: A simple monadic graph library
Copyright(C) 2011 Edward Kmett
LicenseBSD-style (see the file LICENSE)
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityexperimental
Portabilitytype families
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Graph.Class.Bidirectional

Description

 

Documentation

class AdjacencyListGraph g => BidirectionalGraph g where Source #

Minimal complete definition

inEdges

Methods

inEdges :: Vertex g -> g [Edge g] Source #

inDegree :: Vertex g -> g Int Source #

incidentEdges :: Vertex g -> g [Edge g] Source #

degree :: Vertex g -> g Int Source #

Instances

Instances details
BidirectionalGraph Identity Source # 
Instance details

Defined in Data.Graph.Class.Bidirectional

BidirectionalGraph g => BidirectionalGraph (MaybeT g) Source # 
Instance details

Defined in Data.Graph.Class.Bidirectional

BidirectionalGraph g => BidirectionalGraph (Dual g) Source # 
Instance details

Defined in Data.Graph.Dual

(BidirectionalGraph g, Monoid m) => BidirectionalGraph (WriterT m g) Source # 
Instance details

Defined in Data.Graph.Class.Bidirectional

(BidirectionalGraph g, Monoid m) => BidirectionalGraph (WriterT m g) Source # 
Instance details

Defined in Data.Graph.Class.Bidirectional

BidirectionalGraph g => BidirectionalGraph (StateT s g) Source # 
Instance details

Defined in Data.Graph.Class.Bidirectional

Methods

inEdges :: Vertex (StateT s g) -> StateT s g [Edge (StateT s g)] Source #

inDegree :: Vertex (StateT s g) -> StateT s g Int Source #

incidentEdges :: Vertex (StateT s g) -> StateT s g [Edge (StateT s g)] Source #

degree :: Vertex (StateT s g) -> StateT s g Int Source #

BidirectionalGraph g => BidirectionalGraph (StateT s g) Source # 
Instance details

Defined in Data.Graph.Class.Bidirectional

Methods

inEdges :: Vertex (StateT s g) -> StateT s g [Edge (StateT s g)] Source #

inDegree :: Vertex (StateT s g) -> StateT s g Int Source #

incidentEdges :: Vertex (StateT s g) -> StateT s g [Edge (StateT s g)] Source #

degree :: Vertex (StateT s g) -> StateT s g Int Source #

BidirectionalGraph g => BidirectionalGraph (ReaderT e g) Source # 
Instance details

Defined in Data.Graph.Class.Bidirectional

BidirectionalGraph g => BidirectionalGraph (IdentityT g) Source # 
Instance details

Defined in Data.Graph.Class.Bidirectional

(BidirectionalGraph g, Error e) => BidirectionalGraph (ErrorT e g) Source # 
Instance details

Defined in Data.Graph.Class.Bidirectional

Methods

inEdges :: Vertex (ErrorT e g) -> ErrorT e g [Edge (ErrorT e g)] Source #

inDegree :: Vertex (ErrorT e g) -> ErrorT e g Int Source #

incidentEdges :: Vertex (ErrorT e g) -> ErrorT e g [Edge (ErrorT e g)] Source #

degree :: Vertex (ErrorT e g) -> ErrorT e g Int Source #

(BidirectionalGraph g, Monoid m) => BidirectionalGraph (RWST r m s g) Source # 
Instance details

Defined in Data.Graph.Class.Bidirectional

Methods

inEdges :: Vertex (RWST r m s g) -> RWST r m s g [Edge (RWST r m s g)] Source #

inDegree :: Vertex (RWST r m s g) -> RWST r m s g Int Source #

incidentEdges :: Vertex (RWST r m s g) -> RWST r m s g [Edge (RWST r m s g)] Source #

degree :: Vertex (RWST r m s g) -> RWST r m s g Int Source #

(BidirectionalGraph g, Monoid m) => BidirectionalGraph (RWST r m s g) Source # 
Instance details

Defined in Data.Graph.Class.Bidirectional

Methods

inEdges :: Vertex (RWST r m s g) -> RWST r m s g [Edge (RWST r m s g)] Source #

inDegree :: Vertex (RWST r m s g) -> RWST r m s g Int Source #

incidentEdges :: Vertex (RWST r m s g) -> RWST r m s g [Edge (RWST r m s g)] Source #

degree :: Vertex (RWST r m s g) -> RWST r m s g Int Source #