- Enclosing class:
public static final class Transform.BatchGraph extends ImmutableSequentialGraph
Nested Class Summary
Modifier and Type Method Description
()Whether the node iterators returned by this graph support
()Returns a node iterator for scanning the graph sequentially, starting from the first node.
()Returns the number of arcs of this graph (optional operation).
()Returns the number of nodes of this graph.
Methods inherited from class it.unimi.dsi.big.webgraph.ImmutableSequentialGraph
nodeIterator, outdegree, randomAccess, successorBigArray
Methods inherited from class it.unimi.dsi.big.webgraph.ImmutableGraph
basename, equals, hashCode, intNumNodes, load, load, load, loadMapped, loadMapped, loadOffline, loadOffline, loadOnce, loadSequential, loadSequential, outdegrees, splitNodeIterators, store, store, successors, toString, wrap, wrap
numNodespublic long numNodes()Returns the number of nodes of this graph.
Albeit this method is not optional, it is allowed that this method throws an
UnsupportedOperationExceptionif this graph has never been entirely traversed using a
node iterator. This apparently bizarre behaviour is necessary to support implementations as
ArcListASCIIGraph, which do not know the actual number of nodes until a traversal has been completed.
numArcspublic long numArcs()Returns the number of arcs of this graph (optional operation).
hasCopiableIteratorspublic boolean hasCopiableIterators()Whether the node iterators returned by this graph support
This implementation just returns
copypublic Transform.BatchGraph copy()Description copied from class:
nodeIteratorpublic NodeIterator nodeIterator()Returns a node iterator for scanning the graph sequentially, starting from the first node.
finalizeprotected void finalize() throws Throwable