- Add code to visualize an instance and matching as a graph (bipartite, rather
[match/match.git] / program / ProposalMatcher.hs
index f523c27..46a693c 100644 (file)
@@ -102,16 +102,6 @@ todo = undefined
 -- Returns a list of reviews as ordered pairs (reviewer#, proposal#).
 doMatching :: Instance -> [(Int, Int)]
 doMatching inst@(Instance numRvrs numProps _ _) =
-       -- Copied from doReduction.  There should be a better way to get these here.
-       let
-               source = 0
-               sink = 1
-               rvrNode i boringness = 2 + 3*i + boringness
-               propNode j expertness = 2 + 3*numRvrs + 3*j + expertness
-               firstPropNode = propNode 0 0
-               idPropNode n = (n - (2 + 3*numRvrs)) `div` 3
-               numNodes = 2 + 3*numRvrs + 3*numProps
-               in
        let ReductionResult graph source sink idxBounds edIdx = doReduction inst in
        let flowArray = minCostFlow idxBounds reIdx reCap reCost graph (source, sink) in
        let pairs = do