|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.dsi.webgraph.ImmutableGraph
it.unimi.dsi.webgraph.labelling.ArcLabelledImmutableGraph
it.unimi.dsi.webgraph.labelling.ArcLabelledImmutableSequentialGraph
public abstract class ArcLabelledImmutableSequentialGraph
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 it.unimi.dsi.webgraph.ImmutableGraph |
---|
ImmutableGraph.LoadMethod |
Field Summary |
---|
Fields inherited from class it.unimi.dsi.webgraph.labelling.ArcLabelledImmutableGraph |
---|
UNDERLYINGGRAPH_PROPERTY_KEY, UNDERLYINGGRAPH_SUFFIX |
Fields inherited from class it.unimi.dsi.webgraph.ImmutableGraph |
---|
GRAPHCLASS_PROPERTY_KEY, PROPERTIES_EXTENSION |
Constructor Summary | |
---|---|
ArcLabelledImmutableSequentialGraph()
|
Method Summary | |
---|---|
ArcLabelledImmutableGraph |
copy()
Throws an UnsupportedOperationException . |
Label[] |
labelArray(int x)
Throws an UnsupportedOperationException . |
ArcLabelledNodeIterator |
nodeIterator(int x)
Throws an UnsupportedOperationException . |
int |
outdegree(int x)
Throws an UnsupportedOperationException . |
boolean |
randomAccess()
Returns false. |
int[] |
successorArray(int x)
Throws an UnsupportedOperationException . |
ArcLabelledNodeIterator.LabelledArcIterator |
successors(int x)
Throws an UnsupportedOperationException . |
Methods inherited from class it.unimi.dsi.webgraph.labelling.ArcLabelledImmutableGraph |
---|
equals, load, load, loadOffline, loadOffline, loadOnce, loadSequential, loadSequential, nodeIterator, prototype, toString |
Methods inherited from class it.unimi.dsi.webgraph.ImmutableGraph |
---|
basename, hashCode, load, loadMapped, loadMapped, numArcs, numNodes, outdegrees, store, store |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ArcLabelledImmutableSequentialGraph()
Method Detail |
---|
public int[] successorArray(int x)
UnsupportedOperationException
.
successorArray
in class ImmutableGraph
x
- a node.
public Label[] labelArray(int x)
UnsupportedOperationException
.
labelArray
in class ArcLabelledImmutableGraph
x
; the array must not be modified by the caller.public int outdegree(int x)
UnsupportedOperationException
.
outdegree
in class ImmutableGraph
x
- a node.
public ArcLabelledNodeIterator nodeIterator(int x)
UnsupportedOperationException
.
nodeIterator
in class ArcLabelledImmutableGraph
x
- the node from which the iterator will iterate.
ArcLabelledNodeIterator
for accessing nodes, successors and their labels sequentially.ImmutableGraph.nodeIterator()
public ArcLabelledNodeIterator.LabelledArcIterator successors(int x)
UnsupportedOperationException
.
successors
in class ArcLabelledImmutableGraph
x
- a node.
public boolean randomAccess()
randomAccess
in class ImmutableGraph
public ArcLabelledImmutableGraph copy()
UnsupportedOperationException
.
copy
in interface FlyweightPrototype<ImmutableGraph>
copy
in class ArcLabelledImmutableGraph
FlyweightPrototype
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |