Package it.unimi.dsi.big.webgraph.typed
Class BVImmutableTypedGraph
java.lang.Object
it.unimi.dsi.big.webgraph.typed.BVImmutableTypedGraph
- All Implemented Interfaces:
TypedGraph
,it.unimi.dsi.lang.FlyweightPrototype<BVImmutableTypedGraph>
,Closeable
,AutoCloseable
public class BVImmutableTypedGraph
extends Object
implements TypedGraph, Closeable, it.unimi.dsi.lang.FlyweightPrototype<BVImmutableTypedGraph>
-
Field Summary
Fields inherited from interface it.unimi.dsi.big.webgraph.typed.TypedGraph
ID_BITS
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
BVImmutableTypedGraph
(ImmutableGraph immutableTypeGraph, long[] numNodes, long[][] numArcs, RandomAccessFile[] graphRandomAccessFile, it.unimi.dsi.fastutil.longs.LongBigList[] offset) protected
BVImmutableTypedGraph
(ImmutableGraph immutableTypeGraph, long[] numNodes, long[][] numArcs, RandomAccessFile[] graphRandomAccessFile, it.unimi.dsi.io.ByteBufferInputStream[] graphStream, it.unimi.dsi.fastutil.longs.LongBigList[] offset) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
copy()
static BVImmutableTypedGraph
load
(CharSequence basename, CharSequence typeBasename, it.unimi.dsi.logging.ProgressLogger pl) long
numArcs()
long
numNodes()
long
numNodes
(int type) long
outdegree
(long node) successors
(long node)
-
Constructor Details
-
BVImmutableTypedGraph
protected BVImmutableTypedGraph(ImmutableGraph immutableTypeGraph, long[] numNodes, long[][] numArcs, RandomAccessFile[] graphRandomAccessFile, it.unimi.dsi.fastutil.longs.LongBigList[] offset) throws IOException - Throws:
IOException
-
BVImmutableTypedGraph
protected BVImmutableTypedGraph(ImmutableGraph immutableTypeGraph, long[] numNodes, long[][] numArcs, RandomAccessFile[] graphRandomAccessFile, it.unimi.dsi.io.ByteBufferInputStream[] graphStream, it.unimi.dsi.fastutil.longs.LongBigList[] offset)
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
typeGraph
- Specified by:
typeGraph
in interfaceTypedGraph
-
numNodes
public long numNodes()- Specified by:
numNodes
in interfaceTypedGraph
-
numNodes
public long numNodes(int type) - Specified by:
numNodes
in interfaceTypedGraph
-
numArcs
public long numArcs()- Specified by:
numArcs
in interfaceTypedGraph
-
outdegree
- Specified by:
outdegree
in interfaceTypedGraph
- Throws:
IOException
-
successors
- Specified by:
successors
in interfaceTypedGraph
- Throws:
IOException
-
nodeIterator
- Specified by:
nodeIterator
in interfaceTypedGraph
-
load
public static BVImmutableTypedGraph load(CharSequence basename, CharSequence typeBasename, it.unimi.dsi.logging.ProgressLogger pl) throws IOException, ClassNotFoundException, org.apache.commons.configuration2.ex.ConfigurationException - Throws:
IOException
ClassNotFoundException
org.apache.commons.configuration2.ex.ConfigurationException
-
copy
- Specified by:
copy
in interfaceit.unimi.dsi.lang.FlyweightPrototype<BVImmutableTypedGraph>
-