import Data.Graph.Inductive.Graph
import Data.Graph.Inductive.Tree
+-- So we can call graphviz' at the GHCi prompt
+import Data.Graph.Inductive.Graphviz
+graphviz' g = Data.Graph.Inductive.Graphviz.graphviz' g
+
myGraph = mkGraph [(0, ()), (1, ()), (2, ())]
[(0, 1, 2), (0, 2, 3), (2, 1, -2)] :: Gr () Double
]
myPrefs = \i j -> myPrefsArray ! (i, j)
-myInst = Instance myNumRvrs myNumProps myPrefs
+myInst = Instance myNumRvrs myNumProps (const 1) myPrefs
---rdnGraph = doReduction myInst (const (fromInteger wantExpertReviews))
---(rdnFlowVal, rdnFlowResid) = umcf 0 1 rdnGraph
---rdnFlow = flowDiff rdnGraph rdnFlowResid
+rdnGraph = doReduction myInst
+(rdnFlowVal, rdnFlowResid) = umcf 0 1 rdnGraph
+rdnFlow = flowDiff rdnGraph rdnFlowResid
myMatching = doMatching myInst