Changeset View
Changeset View
Standalone View
Standalone View
java/src/main/java/org/softwareheritage/graph/utils/ReadGraph.java
Show All 16 Lines | public static void main(String[] args) throws IOException { | ||||
while (it.hasNext()) { | while (it.hasNext()) { | ||||
long srcNode = it.nextLong(); | long srcNode = it.nextLong(); | ||||
var s = it.successors(); | var s = it.successors(); | ||||
long dstNode; | long dstNode; | ||||
while ((dstNode = s.nextLong()) >= 0) { | while ((dstNode = s.nextLong()) >= 0) { | ||||
System.out.format( | System.out.format( | ||||
"%s %s\n", | "%s %s\n", | ||||
nodeMap.getSwhPID(srcNode), | nodeMap.getSWHID(srcNode), | ||||
nodeMap.getSwhPID(dstNode) | nodeMap.getSWHID(dstNode) | ||||
); | ); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
} | } | ||||