File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,9 @@ type UPath = [UNode]
111
111
-- | Labeled links to or from a 'Node'.
112
112
type Adj b = [(b ,Node )]
113
113
-- | Links to the 'Node', the 'Node' itself, a label, links from the 'Node'.
114
+ --
115
+ -- In other words, this captures all information regarding the
116
+ -- specified 'Node' within a graph.
114
117
type Context a b = (Adj b ,Node ,a ,Adj b ) -- Context a b "=" Context' a b "+" Node
115
118
type MContext a b = Maybe (Context a b )
116
119
-- | 'Graph' decomposition - the context removed from a 'Graph', and the rest
@@ -176,8 +179,11 @@ class Graph gr where
176
179
class (Graph gr ) => DynGraph gr where
177
180
-- | Merge the 'Context' into the 'DynGraph'.
178
181
--
179
- -- Contexts should only refer to either a Node already in a graph
180
- -- or the node in the Context itself (for loops).
182
+ -- Context adjacencies should only refer to either a Node already
183
+ -- in a graph or the node in the Context itself (for loops).
184
+ --
185
+ -- Behaviour is undefined if the specified 'Node' already exists
186
+ -- in the graph.
181
187
(&) :: Context a b -> gr a b -> gr a b
182
188
183
189
You can’t perform that action at this time.
0 commit comments