Package it.unimi.dsi.big.webgraph
Class Transform.BatchGraph
- java.lang.Object
-
- it.unimi.dsi.big.webgraph.ImmutableGraph
-
- it.unimi.dsi.big.webgraph.ImmutableSequentialGraph
-
- it.unimi.dsi.big.webgraph.Transform.BatchGraph
-
- All Implemented Interfaces:
it.unimi.dsi.lang.FlyweightPrototype<ImmutableGraph>
- Enclosing class:
- Transform
public static final class Transform.BatchGraph extends ImmutableSequentialGraph
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class it.unimi.dsi.big.webgraph.ImmutableGraph
ImmutableGraph.LoadMethod
-
-
Field Summary
-
Fields inherited from class it.unimi.dsi.big.webgraph.ImmutableGraph
GRAPHCLASS_PROPERTY_KEY, NUMBER_OF_THREADS_PROPERTY, PROPERTIES_EXTENSION
-
-
Constructor Summary
Constructors Constructor Description BatchGraph(long n, long m, it.unimi.dsi.fastutil.objects.ObjectArrayList<java.io.File> batches)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Transform.BatchGraphcopy()Throws anUnsupportedOperationException.protected voidfinalize()booleanhasCopiableIterators()Whether the node iterators returned by this graph supportNodeIterator.copy(long).NodeIteratornodeIterator()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).longnumNodes()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
-
-
-
-
Method Detail
-
numNodes
public long 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(long).- Overrides:
hasCopiableIteratorsin classImmutableGraph- Returns:
- true if this graph provides copiable iterators.
-
copy
public Transform.BatchGraph 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:
FlyweightPrototype
-
nodeIterator
public NodeIterator 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
protected void finalize() throws java.lang.Throwable- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-
-