Changeset View
Changeset View
Standalone View
Standalone View
java/server/src/main/java/org/softwareheritage/graph/Graph.java
Show All 17 Lines | |||||
* href="https://docs.softwareheritage.org/devel/swh-model/persistent-identifiers.html">persistent | * href="https://docs.softwareheritage.org/devel/swh-model/persistent-identifiers.html">persistent | ||||
* identifiers</a> (PID) while WebGraph uses integers internally. These two mappings (long id ↔ | * identifiers</a> (PID) while WebGraph uses integers internally. These two mappings (long id ↔ | ||||
* PID) are used for the input (users refer to the graph using PID) and the output (convert back to | * PID) are used for the input (users refer to the graph using PID) and the output (convert back to | ||||
* PID for users results). However, since graph traversal can be restricted depending on the node | * PID for users results). However, since graph traversal can be restricted depending on the node | ||||
* type (see {@link AllowedEdges}), a long id → node type map is stored as well to avoid a full | * type (see {@link AllowedEdges}), a long id → node type map is stored as well to avoid a full | ||||
* PID lookup. | * PID lookup. | ||||
* | * | ||||
* @author Thibault Allançon | * @author Thibault Allançon | ||||
* @version 0.0.1 | |||||
* @since 0.0.1 | |||||
* @see org.softwareheritage.graph.AllowedEdges | * @see org.softwareheritage.graph.AllowedEdges | ||||
* @see org.softwareheritage.graph.NodeIdMap; | * @see org.softwareheritage.graph.NodeIdMap; | ||||
* @see org.softwareheritage.graph.NodeTypesMap; | * @see org.softwareheritage.graph.NodeTypesMap; | ||||
*/ | */ | ||||
public class Graph { | public class Graph { | ||||
/** File extension for the SWH PID to long node id map */ | /** File extension for the SWH PID to long node id map */ | ||||
public static final String PID_TO_NODE = ".pid2node.csv"; | public static final String PID_TO_NODE = ".pid2node.csv"; | ||||
▲ Show 20 Lines • Show All 161 Lines • Show Last 20 Lines |