Skip to content

Commit 14e174b

Browse files
committed
Finish fixing #26
1 parent 7ce05c4 commit 14e174b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Data/Graph/Inductive/Graph.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ insEdge (v,w,l) g = (pr,v,la,(l,w):su) & g'
275275
(pr,_,la,su) = fromMaybe
276276
(error ("insEdge: cannot add edge from non-existent vertex " ++ show v))
277277
mcxt
278+
{-# NOINLINE [0] insEdge #-}
278279

279280
-- | Remove a 'Node' from the 'Graph'.
280281
delNode :: (Graph gr) => Node -> gr a b -> gr a b
@@ -312,13 +313,11 @@ delLEdgeBy f (v,w,b) g = case match v g of
312313
-- | Insert multiple 'LNode's into the 'Graph'.
313314
insNodes :: (DynGraph gr) => [LNode a] -> gr a b -> gr a b
314315
insNodes vs g = foldl' (flip insNode) g vs
315-
316316
{-# INLINABLE insNodes #-}
317317

318318
-- | Insert multiple 'LEdge's into the 'Graph'.
319319
insEdges :: (DynGraph gr) => [LEdge b] -> gr a b -> gr a b
320320
insEdges es g = foldl' (flip insEdge) g es
321-
322321
{-# INLINABLE insEdges #-}
323322

324323
-- | Remove multiple 'Node's from the 'Graph'.

0 commit comments

Comments
 (0)