Skip to main content

graph6_encode

Function graph6_encode 

Source
pub fn graph6_encode<G>(graph: &G) -> Result<String>
Expand description

Encodes a compact simple undirected graph in Graph6 form.

ยงErrors

Returns an error for non-compact indexes, loops, parallel edges, or capacity overflow because Graph6 cannot represent those contracts.