Package it.unimi.dsi.webgraph
Class Transform.BatchGraph
java.lang.Object
it.unimi.dsi.webgraph.ImmutableGraph
it.unimi.dsi.webgraph.ImmutableSequentialGraph
it.unimi.dsi.webgraph.Transform.BatchGraph
- All Implemented Interfaces:
it.unimi.dsi.lang.FlyweightPrototype<ImmutableGraph>
- Enclosing class:
Transform
-
Nested Class Summary
Nested classes/interfaces inherited from class it.unimi.dsi.webgraph.ImmutableGraph
ImmutableGraph.LoadMethod -
Field Summary
Fields inherited from class it.unimi.dsi.webgraph.ImmutableGraph
GRAPHCLASS_PROPERTY_KEY, NUMBER_OF_THREADS_PROPERTY, PROPERTIES_EXTENSION -
Constructor Summary
ConstructorsConstructorDescriptionBatchGraph(int n, long m, it.unimi.dsi.fastutil.objects.ObjectArrayList<File> batches) -
Method Summary
Modifier and TypeMethodDescriptioncopy()Throws anUnsupportedOperationException.protected voidfinalize()booleanWhether the node iterators returned by this graph supportNodeIterator.copy(int).Returns a node iterator for scanning the graph sequentially, starting from the first node.longnumArcs()Returns the number of arcs of this graph (optional operation).intnumNodes()Returns the number of nodes of this graph.Methods inherited from class it.unimi.dsi.webgraph.ImmutableSequentialGraph
nodeIterator, outdegree, randomAccess, successorArrayMethods inherited from class it.unimi.dsi.webgraph.ImmutableGraph
basename, equals, hashCode, load, load, load, loadMapped, loadMapped, loadOffline, loadOffline, loadOnce, loadSequential, loadSequential, outdegrees, splitNodeIterators, store, store, successors, toString
-
Constructor Details
-
BatchGraph
-
-
Method Details
-
numNodes
public int numNodes()Description copied from class:ImmutableGraphReturns 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 anode iterator. This apparently bizarre behaviour is necessary to support implementations asArcListASCIIGraph, which do not know the actual number of nodes until a traversal has been completed.- Specified by:
numNodesin classImmutableGraph- Returns:
- the number of nodes.
-
numArcs
public long numArcs()Description copied from class:ImmutableGraphReturns the number of arcs of this graph (optional operation).- Overrides:
numArcsin classImmutableGraph- Returns:
- the number of arcs.
-
hasCopiableIterators
public boolean hasCopiableIterators()Description copied from class:ImmutableGraphWhether the node iterators returned by this graph supportNodeIterator.copy(int).- Overrides:
hasCopiableIteratorsin classImmutableGraph- Returns:
- true if this graph provides copiable iterators.
-
copy
Description copied from class:ImmutableSequentialGraphThrows anUnsupportedOperationException.- Specified by:
copyin interfaceit.unimi.dsi.lang.FlyweightPrototype<ImmutableGraph>- Overrides:
copyin classImmutableSequentialGraph- Returns:
- a flyweight copy of this immutable graph.
- See Also:
-
nodeIterator
Description copied from class:ImmutableGraphReturns a node iterator for scanning the graph sequentially, starting from the first node.- Overrides:
nodeIteratorin classImmutableGraph- Returns:
- a
NodeIteratorfor accessing nodes and successors sequentially.
-
finalize
-