graph-rewriting-0.5.2: Monadic graph rewriting of hypergraphs with ports and multiedges

GraphRewriting.Pattern.InteractionNet

Description

Offers an activePair pattern for convenient implementation of interaction nets.

Synopsis

Documentation

class INet v whereSource

Index that identifies the principal port within the list of ports

Methods

principalPort :: v -> IntSource

data Pair x Source

Instead of (,) to save parentheses

Constructors

x :-: x 

pair :: Pair a -> (a, a)Source

activePair :: (View [Port] n, View v n, INet v) => Pattern n (Pair v)Source