Differential D6953 Diff 25202 java/src/main/java/org/softwareheritage/graph/maps/LabelMapBuilder.java
Changeset View
Changeset View
Standalone View
Standalone View
java/src/main/java/org/softwareheritage/graph/maps/LabelMapBuilder.java
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | public LabelMapBuilder(String graphPath, String debugPath, String outputGraphPath, String tmpDir) | ||||
// Load the graph in offline mode to retrieve the number of nodes/edges, | // Load the graph in offline mode to retrieve the number of nodes/edges, | ||||
// then immediately destroy it. XXX: not even needed? | // then immediately destroy it. XXX: not even needed? | ||||
// ImmutableGraph graphOffline = BVGraph.loadMapped(graphPath); | // ImmutableGraph graphOffline = BVGraph.loadMapped(graphPath); | ||||
graph = BVGraph.loadMapped(graphPath); | graph = BVGraph.loadMapped(graphPath); | ||||
numArcs = graph.numArcs(); | numArcs = graph.numArcs(); | ||||
numNodes = graph.numNodes(); | numNodes = graph.numNodes(); | ||||
nodeIdMap = new NodeIdMap(graphPath, numNodes); | nodeIdMap = new NodeIdMap(graphPath); | ||||
filenameMph = NodeIdMap.loadMph(graphPath + "-labels.mph"); | filenameMph = NodeIdMap.loadMph(graphPath + "-labels.mph"); | ||||
numFilenames = getMPHSize(filenameMph); | numFilenames = getMPHSize(filenameMph); | ||||
totalLabelWidth = DirEntry.labelWidth(numFilenames); | totalLabelWidth = DirEntry.labelWidth(numFilenames); | ||||
} | } | ||||
private static JSAPResult parse_args(String[] args) { | private static JSAPResult parse_args(String[] args) { | ||||
JSAPResult config = null; | JSAPResult config = null; | ||||
▲ Show 20 Lines • Show All 455 Lines • Show Last 20 Lines |