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