Differential D6594 Diff 23958 java/src/main/java/org/softwareheritage/graph/experiments/forks/ForkCC.java
Changeset View
Changeset View
Standalone View
Standalone View
java/src/main/java/org/softwareheritage/graph/experiments/forks/ForkCC.java
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | private static void printLargestComponent(ArrayList<ArrayList<Long>> components) { | ||||
ArrayList<Long> component = components.get(indexLargest); | ArrayList<Long> component = components.get(indexLargest); | ||||
for (Long node : component) { | for (Long node : component) { | ||||
System.out.println(node); | System.out.println(node); | ||||
} | } | ||||
} | } | ||||
private void load_graph(String graphBasename) throws IOException { | private void load_graph(String graphBasename) throws IOException { | ||||
System.err.println("Loading graph " + graphBasename + " ..."); | System.err.println("Loading graph " + graphBasename + " ..."); | ||||
this.graph = Graph.loadMapped(graphBasename).symmetrize(); | this.graph = Graph.loadMapped(graphBasename, Graph.LoadDirection.BOTH).symmetrize(); | ||||
System.err.println("Graph loaded."); | System.err.println("Graph loaded."); | ||||
this.emptySnapshot = null; | this.emptySnapshot = null; | ||||
this.whitelist = null; | this.whitelist = null; | ||||
this.visited = null; | this.visited = null; | ||||
this.includeRootDir = null; | this.includeRootDir = null; | ||||
} | } | ||||
private boolean nodeIsEmptySnapshot(Long node) { | private boolean nodeIsEmptySnapshot(Long node) { | ||||
▲ Show 20 Lines • Show All 166 Lines • Show Last 20 Lines |