Skip to content

Commit 708eae8

Browse files
committed
solidify on zero-weight self-neighbor as the encoding for islands
1 parent 4550580 commit 708eae8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libpysal/weights/weights.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def to_adjlist(
308308
links = []
309309
for idx, neighb in self:
310310
if len(neighb) == 0:
311-
links.append((idx, None, np.nan))
311+
links.append((idx, idx, 0))
312312
continue
313313
for n, w in neighb.items():
314314
links.append((idx, n, w))

0 commit comments

Comments
 (0)