verigraph-1.1.1: Software specification and verification tool based on graph rewriting.

Safe HaskellSafe
LanguageHaskell2010

TypedGraph.Graph

Contents

Synopsis

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

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