Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- type TypedGraph a b = GraphMorphism (Maybe a) (Maybe b)
- untypedGraph :: TypedGraph a b -> Graph (Maybe a) (Maybe b)
- extractNodeType :: TypedGraph a b -> NodeId -> NodeId
- extractEdgeType :: TypedGraph a b -> EdgeId -> EdgeId
- typeGraph :: TypedGraph a b -> Graph (Maybe a) (Maybe b)
- null :: TypedGraph a b -> Bool
- newTypedNodes :: TypedGraph a b -> [NodeId]
- newTypedEdges :: TypedGraph a b -> [EdgeId]
- typedNodes :: TypedGraph a b -> [(NodeId, NodeId)]
- typedEdges :: TypedGraph a b -> [(EdgeId, NodeId, NodeId, EdgeId)]
- untypedNodes :: TypedGraph a b -> [NodeId]
- untypedEdges :: TypedGraph a b -> [EdgeId]
Documentation
type TypedGraph a b = GraphMorphism (Maybe a) (Maybe b) Source #
A typed graph is a morphism whose codomain is the type graph.
untypedGraph :: TypedGraph a b -> Graph (Maybe a) (Maybe b) Source #
Obtain the untyped version of the typed graph
extractNodeType :: TypedGraph a b -> NodeId -> NodeId Source #
extractEdgeType :: TypedGraph a b -> EdgeId -> EdgeId Source #
typeGraph :: TypedGraph a b -> Graph (Maybe a) (Maybe b) Source #
Obtain the type graph from a typed graph
null :: TypedGraph a b -> Bool Source #
Test if the typed graph is empty
newTypedNodes :: TypedGraph a b -> [NodeId] Source #
Infinite list of new node instances of a typed graph
newTypedEdges :: TypedGraph a b -> [EdgeId] Source #
Infinite list of new edge instances of a typed graph
typedNodes :: TypedGraph a b -> [(NodeId, NodeId)] Source #
Obtain a list of tuples (nodeId, typeId)
for nodes in the graph.
typedEdges :: TypedGraph a b -> [(EdgeId, NodeId, NodeId, EdgeId)] Source #
Obtain a list of tuples (edgeId, srcId, tgtId, typeId)
for edges in the graph.
untypedNodes :: TypedGraph a b -> [NodeId] Source #
Obtain the list of untyped nodes, i.e., the list of node ids from the typed graph domain
untypedEdges :: TypedGraph a b -> [EdgeId] Source #
Obtain the list of untyped edges, i.e., the list of edge ids from the typed graph domain
Orphan instances
Cardinality (GraphMorphism a b) Source # | |