Skip to content

Commit d392063

Browse files
committed
include the last node as edges is zero-based
1 parent 16205db commit d392063

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libpysal/weights/gabriel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ def _filter_relativehood(edges, coordinates, return_dkmax=False):
334334
3. for each edge of the delaunay (i,j), prune
335335
if any dkmax is smaller than d(i,j)
336336
"""
337-
n = edges.max()
337+
n = len(coordinates)
338338
out = []
339339
r = []
340340
for edge in edges:

0 commit comments

Comments
 (0)