public NodeIterable newNodeIterable(AbstractNodeIterator iterator, Predicate<Node> predicate) {
return new NodeIterableImpl(iterator, readWriteLock.readLock());
}
public EdgeIterable newEdgeIterable(AbstractEdgeIterator iterator, Predicate<AbstractEdge> predicate) {
return new EdgeIterableImpl(iterator, readWriteLock.readLock(), predicate);
}