Skip to content

Commit ba3817d

Browse files
author
Jonathan Ellis
committed
fix getIdUpperBound javadoc
1 parent ca8538d commit ba3817d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

jvector-base/src/main/java/io/github/jbellis/jvector/graph/GraphIndex.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ public interface GraphIndex extends AutoCloseable, Accountable {
7373
int maxDegree();
7474

7575
/**
76-
* @return the maximum node id in the graph. May be different from size() if nodes are
77-
* being added concurrently, or if nodes have been deleted (and cleaned up).
76+
* @return the first ordinal greater than all node ids in the graph. Equal to size() in simple cases;
77+
* May be different from size() if nodes are being added concurrently, or if nodes have been
78+
* deleted (and cleaned up).
7879
*/
7980
default int getIdUpperBound() {
8081
return size();

0 commit comments

Comments
 (0)