Class ArcLabelledImmutableSequentialGraph
java.lang.Object
it.unimi.dsi.webgraph.ImmutableGraph
it.unimi.dsi.webgraph.labelling.ArcLabelledImmutableGraph
it.unimi.dsi.webgraph.labelling.ArcLabelledImmutableSequentialGraph
- All Implemented Interfaces:
it.unimi.dsi.lang.FlyweightPrototype<ImmutableGraph>
- Direct Known Subclasses:
IntegerTriplesArcLabelledImmutableGraph
An abstract arc-labelled immutable graph that throws an
UnsupportedOperationException
on all random-access methods.
The main purpose of this class is to be used as a base for the numerous anonymous classes that do not support random access.
-
Nested Class Summary
Nested classes/interfaces inherited from class ImmutableGraph
ImmutableGraph.LoadMethod -
Field Summary
Fields inherited from class ArcLabelledImmutableGraph
UNDERLYINGGRAPH_PROPERTY_KEY, UNDERLYINGGRAPH_SUFFIXFields inherited from class ImmutableGraph
GRAPHCLASS_PROPERTY_KEY, NUMBER_OF_THREADS_PROPERTY, PROPERTIES_EXTENSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Throws anUnsupportedOperationException.Label[]labelArray(int x) Throws anUnsupportedOperationException.nodeIterator(int x) Throws anUnsupportedOperationException.intoutdegree(int x) Throws anUnsupportedOperationException.booleanReturns false.int[]successorArray(int x) Throws anUnsupportedOperationException.successors(int x) Throws anUnsupportedOperationException.Methods inherited from class ArcLabelledImmutableGraph
equals, load, load, loadOffline, loadOffline, loadOnce, loadSequential, loadSequential, nodeIterator, prototype, toStringMethods inherited from class ImmutableGraph
basename, hasCopiableIterators, hashCode, load, loadMapped, loadMapped, numArcs, numNodes, outdegrees, splitNodeIterators, store, store
-
Constructor Details
-
ArcLabelledImmutableSequentialGraph
public ArcLabelledImmutableSequentialGraph()
-
-
Method Details
-
successorArray
public int[] successorArray(int x) Throws anUnsupportedOperationException.- Overrides:
successorArrayin classImmutableGraph- Parameters:
x- a node.- Returns:
- an array whose first elements are the successors of the node; the array must not be modified by the caller.
-
labelArray
Throws anUnsupportedOperationException.- Overrides:
labelArrayin classArcLabelledImmutableGraph- Returns:
- an array whose first elements are the labels of the arcs going out of
x; the array must not be modified by the caller.
-
outdegree
public int outdegree(int x) Throws anUnsupportedOperationException.- Specified by:
outdegreein classImmutableGraph- Parameters:
x- a node.- Returns:
- the outdegree of the given node.
-
nodeIterator
Throws anUnsupportedOperationException.- Overrides:
nodeIteratorin classArcLabelledImmutableGraph- Parameters:
x- the node from which the iterator will iterate.- Returns:
- an
ArcLabelledNodeIteratorfor accessing nodes, successors and their labels sequentially. - See Also:
-
successors
Throws anUnsupportedOperationException.- Specified by:
successorsin classArcLabelledImmutableGraph- Parameters:
x- a node.- Returns:
- a lazy iterator over the successors of the node.
-
randomAccess
public boolean randomAccess()Returns false.- Specified by:
randomAccessin classImmutableGraph- Returns:
- false.
-
copy
Throws anUnsupportedOperationException.- Specified by:
copyin interfaceit.unimi.dsi.lang.FlyweightPrototype<ImmutableGraph>- Specified by:
copyin classArcLabelledImmutableGraph- Returns:
- a flyweight copy of this immutable graph.
- See Also:
-