public class NullGraph
extends java.lang.Object
implements org.neo4j.graphalgo.api.Graph
| Constructor and Description |
|---|
NullGraph() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.String> |
availableNodeProperties() |
java.util.Collection<org.neo4j.collection.primitive.PrimitiveLongIterable> |
batchIterables(int batchSize) |
void |
canRelease(boolean canRelease) |
boolean |
contains(long nodeId) |
int |
degree(long nodeId) |
boolean |
exists(long sourceNodeId,
long targetNodeId) |
void |
forEachNode(java.util.function.LongPredicate consumer) |
void |
forEachRelationship(long nodeId,
double fallbackValue,
org.neo4j.graphalgo.api.RelationshipWithPropertyConsumer consumer) |
void |
forEachRelationship(long nodeId,
org.neo4j.graphalgo.api.RelationshipConsumer consumer) |
long |
getTarget(long nodeId,
long index) |
boolean |
hasRelationshipProperty() |
org.neo4j.graphalgo.api.RelationshipIntersect |
intersection() |
boolean |
isEmpty() |
boolean |
isUndirected() |
long |
nodeCount() |
org.neo4j.collection.primitive.PrimitiveLongIterator |
nodeIterator() |
org.neo4j.graphalgo.api.NodeProperties |
nodeProperties(java.lang.String type) |
long |
relationshipCount() |
double |
relationshipProperty(long sourceNodeId,
long targetNodeId) |
double |
relationshipProperty(long sourceNodeId,
long targetNodeId,
double fallbackValue) |
void |
releaseTopology() |
long |
toMappedNodeId(long nodeId) |
long |
toOriginalNodeId(long nodeId) |
public boolean isEmpty()
isEmpty in interface org.neo4j.graphalgo.api.Graphpublic void releaseTopology()
releaseTopology in interface org.neo4j.graphalgo.api.Graphpublic long relationshipCount()
relationshipCount in interface org.neo4j.graphalgo.api.Graphpublic boolean isUndirected()
isUndirected in interface org.neo4j.graphalgo.api.Graphpublic boolean hasRelationshipProperty()
hasRelationshipProperty in interface org.neo4j.graphalgo.api.Graphpublic void canRelease(boolean canRelease)
canRelease in interface org.neo4j.graphalgo.api.Graphpublic org.neo4j.graphalgo.api.RelationshipIntersect intersection()
intersection in interface org.neo4j.graphalgo.api.Graphpublic java.util.Collection<org.neo4j.collection.primitive.PrimitiveLongIterable> batchIterables(int batchSize)
batchIterables in interface org.neo4j.graphalgo.api.BatchNodeIterablepublic int degree(long nodeId)
degree in interface org.neo4j.graphalgo.api.Degreespublic long toMappedNodeId(long nodeId)
toMappedNodeId in interface org.neo4j.graphalgo.api.IdMappingpublic long toOriginalNodeId(long nodeId)
toOriginalNodeId in interface org.neo4j.graphalgo.api.IdMappingpublic boolean contains(long nodeId)
contains in interface org.neo4j.graphalgo.api.IdMappingpublic long nodeCount()
nodeCount in interface org.neo4j.graphalgo.api.IdMappingpublic void forEachNode(java.util.function.LongPredicate consumer)
forEachNode in interface org.neo4j.graphalgo.api.NodeIteratorpublic org.neo4j.collection.primitive.PrimitiveLongIterator nodeIterator()
nodeIterator in interface org.neo4j.graphalgo.api.NodeIteratorpublic org.neo4j.graphalgo.api.NodeProperties nodeProperties(java.lang.String type)
nodeProperties in interface org.neo4j.graphalgo.api.NodePropertyContainerpublic java.util.Set<java.lang.String> availableNodeProperties()
availableNodeProperties in interface org.neo4j.graphalgo.api.NodePropertyContainerpublic long getTarget(long nodeId,
long index)
getTarget in interface org.neo4j.graphalgo.api.RelationshipAccesspublic void forEachRelationship(long nodeId,
org.neo4j.graphalgo.api.RelationshipConsumer consumer)
forEachRelationship in interface org.neo4j.graphalgo.api.RelationshipIteratorpublic void forEachRelationship(long nodeId,
double fallbackValue,
org.neo4j.graphalgo.api.RelationshipWithPropertyConsumer consumer)
forEachRelationship in interface org.neo4j.graphalgo.api.RelationshipIteratorpublic boolean exists(long sourceNodeId,
long targetNodeId)
exists in interface org.neo4j.graphalgo.api.RelationshipPredicatepublic double relationshipProperty(long sourceNodeId,
long targetNodeId,
double fallbackValue)
relationshipProperty in interface org.neo4j.graphalgo.api.RelationshipPropertiespublic double relationshipProperty(long sourceNodeId,
long targetNodeId)
relationshipProperty in interface org.neo4j.graphalgo.api.RelationshipProperties