Skip to content

Commit e6a4998

Browse files
committed
Fix bug with large amount of links
1 parent 9bf7723 commit e6a4998

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

nodes/src/main/java/org/nodes/DiskDGraph.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,9 +1255,7 @@ public static DiskDGraph fromFile(File file, File tmpDir, File dbFile)
12551255
while(graph.out.size() < max)
12561256
graph.out.add(Collections.EMPTY_LIST);
12571257

1258-
if(links > Integer.MAX_VALUE)
1259-
throw new RuntimeException("Too many links ("+links+"). nodes currently only supports links up to Integer.MAX_VALUE. Please create an issue on github if you run into this problem.");
1260-
graph.numLinks = (int) links;
1258+
graph.numLinks = links;
12611259
graph.nullLabels = true;
12621260

12631261
Global.log().info("Graph loaded and sorted.");

0 commit comments

Comments
 (0)