Package org.neo4j.graphalgo.api
Interface Degrees
-
- All Known Implementing Classes:
CSRGraphAdapter
,GraphAdapter
,HugeGraph
,NodeFilteredGraph
,UnionGraph
public interface Degrees
The Degree interface is intended to return the degree of a given node.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
degree(long nodeId)
int
degreeWithoutParallelRelationships(long nodeId)
Much slower than just degree() because it may have to look up all relationships.
-
-
-
Method Detail
-
degree
int degree(long nodeId)
-
degreeWithoutParallelRelationships
int degreeWithoutParallelRelationships(long nodeId)
Much slower than just degree() because it may have to look up all relationships. This is not thread-safe, so if this is called concurrently please useRelationshipIterator.concurrentCopy()
.- See Also:
Graph.isMultiGraph()
-
-