Skip to content

Commit badd81e

Browse files
committed
Use common method Read.countsForRelationship in GraphDimensionsReader
1 parent 033522e commit badd81e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

native-projection/src/main/java/org/neo4j/gds/projection/GraphDimensionsReader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ protected Map<RelationshipType, Long> getRelationshipCountsByType(
205205

206206
private static long relCountUpperBoundForLabelAndType(Read dataRead, int labelId, int id) {
207207
return Math.max(
208-
dataRead.estimateCountsForRelationships(labelId, id, ANY_LABEL),
209-
dataRead.estimateCountsForRelationships(ANY_LABEL, id, labelId)
208+
dataRead.countsForRelationship(labelId, id, ANY_LABEL),
209+
dataRead.countsForRelationship(ANY_LABEL, id, labelId)
210210
);
211211
}
212212

0 commit comments

Comments
 (0)