Skip to content

Commit

Permalink
made id 0 reserved
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscar Franzen committed Mar 16, 2017
1 parent adb7d6c commit 0907554
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/simple.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ func main() {
h := hnsw.New(M, efConstruction, &zero)
h.Grow(10000)

for i := 0; i < 10000; i++ {
for i := 1; i <= 10000; i++ {
h.Add(randomPoint(), uint32(i))
if (i+1)%1000 == 0 {
fmt.Printf("%v points added\n", i+1)
if (i)%1000 == 0 {
fmt.Printf("%v points added\n", i)
}
}

Expand Down

0 comments on commit 0907554

Please sign in to comment.