pub fn to_bytes(graph: &Graph) -> Vec<u8> ⓘ
Serialize a graph to compact binary format.
The format is designed for compactness (~7 bytes per node) and fast parsing. All multi-byte values use little-endian encoding.