Contains compressed node based graph edges.
tar -tvf nevada-latest.osrm.cnbg
-rw-rw-r-- 0/0 8 1970-01-01 00:00 osrm_fingerprint.meta
-rw-rw-r-- 0/0 8 1970-01-01 00:00 /extractor/cnbg.meta
-rw-rw-r-- 0/0 5942480 1970-01-01 00:00 /extractor/cnbg
Stores CompressedNodeBasedGraphEdges.
Refer to Understanding OSRM Graph Representation - Basic Changes of Convert OSM to OSRM Edge-expanded Graph to understand how the compressed works.
The node based graph will be compressed when construct it in NodeBasedGraphFactory::NodeBasedGraphFactory(). Then the CompressedNodeBasedGraphEdges will be written to file by files::writeCompressedNodeBasedGraph(), which will simply write the std::vector<CompressedNodeBasedGraphEdge>
to file generated by toEdgeList().
// We encode the cnbg graph only using its topology as edge list
struct CompressedNodeBasedGraphEdge
{
NodeID source;
NodeID target;
};
The actual write will happen in writeCompressedNodeBasedGraph() that writes the std::vector<CompressedNodeBasedGraphEdge>
to /extractor/cnbg
directly.