map_graph_triangular_with_order

Function map_graph_triangular_with_order 

Source
pub fn map_graph_triangular_with_order(
    num_vertices: usize,
    edges: &[(usize, usize)],
    vertex_order: &[usize],
) -> MappingResult
Expand description

Map a graph to triangular lattice with specific vertex ordering.

ยงPanics

Panics if num_vertices == 0 or if any edge vertex is not in vertex_order.