@Test public void quinone_subset() throws Exception { Graph g = Graph.fromSmiles("oc1ccc(o)cc1"); Matching m = Matching.empty(g); MaximumMatching.maximise(g, m, 0, IntSet.allOf(2, 3, 6, 7)); assertThat(m.matches(), hasItems(Tuple.of(2, 3), Tuple.of(6, 7))); }
static int maximise(Graph g, Matching m, int n, IntSet s) { MaximumMatching mm = new MaximumMatching(g, m, n, s); return mm.nMatched; }
MaximumMatching { static int maximise(Graph g, Matching m, int n, IntSet s) { MaximumMatching mm = new MaximumMatching(g, m, n, s); return mm.nMatched; } }
MaximumMatching { static int maximise(Graph g, Matching m, int n, IntSet s) { MaximumMatching mm = new MaximumMatching(g, m, n, s); return mm.nMatched; } private  MaximumMatching(Graph graph, Matching matching, int nMatched, IntSet subset); }
MaximumMatching { static int maximise(Graph g, Matching m, int n, IntSet s) { MaximumMatching mm = new MaximumMatching(g, m, n, s); return mm.nMatched; } private  MaximumMatching(Graph graph, Matching matching, int nMatched, IntSet subset);  }
MaximumMatching { static int maximise(Graph g, Matching m, int n, IntSet s) { MaximumMatching mm = new MaximumMatching(g, m, n, s); return mm.nMatched; } private  MaximumMatching(Graph graph, Matching matching, int nMatched, IntSet subset);   }