Package org.neo4j.gds.api
Interface Degrees
-
- All Known Implementing Classes:
CSRGraphAdapter,GraphAdapter,HugeGraph,NodeFilteredGraph,UnionGraph
public interface DegreesThe 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 intdegree(long nodeId)intdegreeWithoutParallelRelationships(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()
-
-