Remove unused sub-networks when generating multiple FAs.

This commit is contained in:
bringert
2006-01-05 17:46:30 +00:00
parent 6958b7bb7b
commit af905434a2
3 changed files with 40 additions and 11 deletions

View File

@@ -18,6 +18,7 @@ module GF.Speech.Graph ( Graph(..), Node, Edge, NodeInfo
, nodeInfo
, getIncoming, getOutgoing, getNodeLabel
, inDegree, outDegree
, nodeLabel
, edgeFrom, edgeTo, edgeLabel
, reverseGraph, renameNodes
) where
@@ -149,6 +150,9 @@ groupEdgesBy f (Graph _ ns es) =
where nm = Map.fromList [ (n, (x,[])) | (n,x) <- ns ]
-}
nodeLabel :: Node n a -> a
nodeLabel = snd
edgeFrom :: Edge n b -> n
edgeFrom (f,_,_) = f