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
ConstructorsModifierConstructorDescriptionprotectedBVImmutableTypedGraph(ImmutableGraph immutableTypeGraph, long[] numNodes, long[][] numArcs, RandomAccessFile[] graphRandomAccessFile, it.unimi.dsi.fastutil.longs.LongBigList[] offset) protectedBVImmutableTypedGraph(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 TypeMethodDescriptionvoidclose()copy()static BVImmutableTypedGraphload(CharSequence basename, CharSequence typeBasename, it.unimi.dsi.logging.ProgressLogger pl) longnumArcs()longnumNodes()longnumNodes(int type) longoutdegree(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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
typeGraph
- Specified by:
typeGraphin interfaceTypedGraph
-
numNodes
public long numNodes()- Specified by:
numNodesin interfaceTypedGraph
-
numNodes
public long numNodes(int type) - Specified by:
numNodesin interfaceTypedGraph
-
numArcs
public long numArcs()- Specified by:
numArcsin interfaceTypedGraph
-
outdegree
- Specified by:
outdegreein interfaceTypedGraph- Throws:
IOException
-
successors
- Specified by:
successorsin interfaceTypedGraph- Throws:
IOException
-
nodeIterator
- Specified by:
nodeIteratorin 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:
IOExceptionClassNotFoundExceptionorg.apache.commons.configuration2.ex.ConfigurationException
-
copy
- Specified by:
copyin interfaceit.unimi.dsi.lang.FlyweightPrototype<BVImmutableTypedGraph>
-