format_chunk_rel_path

Function format_chunk_rel_path 

Source
pub fn format_chunk_rel_path(first_id: u128) -> String
Expand description

Formats a .ctbnodes chunk’s relative path inside graph_dir:

  • The first 999 .ctbnodes files (chunk_idx 0..999, i.e. 85899_34592.ctbnodes through 85900_34392.ctbnodes) live directly in graph_dir.
  • Starting at the 1000th .ctbnodes file (chunk_idx == 999, 85900_34492.ctbnodes), each block of 1000 .ctbnodes files lives in a subdirectory named after the grouped prefix of that block’s starting chunk ID ("85900/85900_34492.ctbnodes", …, "85901/85901_34492.ctbnodes").