@Test public void test3() { Global.randomSeed(); DTGraph<String, String> a = new MapDTGraph<String, String>(), b = new MapDTGraph<String, String>(); DTNode<String, String> aa = a.add("0"); DTNode<String, String> ab = a.add("1"); DTNode<String, String> ac = a.add("2"); DTNode<String, String> ad = a.add("3"); DTNode<String, String> ag = a.add("4"); DTNode<String, String> ah = a.add("5"); DTNode<String, String> ai = a.add("6"); DTNode<String, String> aj = a.add("7"); aa.connect(ag); aa.connect(ah); aa.connect(ai); ab.connect(ag); ab.connect(ah); ab.connect(aj); ac.connect(ag); ac.connect(ai); ac.connect(aj); ad.connect(ah); ad.connect(ai); ad.connect(aj); List<String> labels = new ArrayList<String>(a.labels()); Collections.shuffle(labels, Global.random()); for(String label : labels) b.add(label); for(String first : labels) for(String second : labels) if(a.node(first).connectedTo(a.node(second))) b.node(first).connect(b.node(second)); System.out.println(a.size()); System.out.println(b.size()); DVF2<String> vfs; vfs = new DVF2<String>(a, b, false); assertTrue(vfs.matches()); aa.disconnect(ag); vfs = new DVF2<String>(a, b, false); assertFalse(vfs.matches()); }
public boolean matches() { return full(core1); }
DVF2 { public boolean matches() { return full(core1); } }
DVF2 { public boolean matches() { return full(core1); } DVF2(DGraph<L> g1, DGraph<L> g2, boolean checkLabels); }
DVF2 { public boolean matches() { return full(core1); } DVF2(DGraph<L> g1, DGraph<L> g2, boolean checkLabels); boolean matches(); Pair<List<Integer>, List<Integer>> mapping(); }
DVF2 { public boolean matches() { return full(core1); } DVF2(DGraph<L> g1, DGraph<L> g2, boolean checkLabels); boolean matches(); Pair<List<Integer>, List<Integer>> mapping();  }