@Test public void testPartiallyOrdered2() { PartiallyOrderedSet<String> poset = creatBowTieGraph(); List<String> entries = toList(poset); assertEquals(5, entries.size()); assertTrue(entries.indexOf("a") < entries.indexOf("b")); assertTrue(entries.indexOf("d") < entries.indexOf("b")); assertTrue(entries.indexOf("b") < entries.indexOf("c")); assertTrue(entries.indexOf("b") < entries.indexOf("e")); }
@Override public int size() { return elementsToNodes.size(); }
PartiallyOrderedSet extends AbstractSet<E> { @Override public int size() { return elementsToNodes.size(); } }
PartiallyOrderedSet extends AbstractSet<E> { @Override public int size() { return elementsToNodes.size(); } PartiallyOrderedSet(boolean throwOnCycle);  PartiallyOrderedSet(); }
PartiallyOrderedSet extends AbstractSet<E> { @Override public int size() { return elementsToNodes.size(); } PartiallyOrderedSet(boolean throwOnCycle);  PartiallyOrderedSet(); @Override boolean add(E e); @Override boolean remove(Object o); boolean setOrder(E source, E target); boolean clearOrder(E source, E target); @Override Iterator<E> iterator(); @Override int size(); }
PartiallyOrderedSet extends AbstractSet<E> { @Override public int size() { return elementsToNodes.size(); } PartiallyOrderedSet(boolean throwOnCycle);  PartiallyOrderedSet(); @Override boolean add(E e); @Override boolean remove(Object o); boolean setOrder(E source, E target); boolean clearOrder(E source, E target); @Override Iterator<E> iterator(); @Override int size();  }