Function complete_graph

Source
pub fn complete_graph<Ty: GraphConstructor<u32, f32>>(
    n: usize,
) -> Result<BaseGraph<u32, f32, Ty>, GraphinaException>
Expand description

Generates a complete graph.

§Arguments

  • n - The number of nodes (must be > 0).

§Type Parameters

  • Ty - The graph type implementing GraphConstructor<u32, f32>.

§Returns

  • Result<BaseGraph<u32, f32, Ty>, GraphinaException> - The complete graph.