Simplify generators::petersen function signature formatting
This commit is contained in:
+1
-9
@@ -50,15 +50,7 @@ where
|
|||||||
/// vertices and edges. This graph is also the Kneser graph *KG(5, 2)*.
|
/// vertices and edges. This graph is also the Kneser graph *KG(5, 2)*.
|
||||||
///
|
///
|
||||||
/// [Petersen graph]: https://en.wikipedia.org/wiki/Petersen_graph
|
/// [Petersen graph]: https://en.wikipedia.org/wiki/Petersen_graph
|
||||||
pub fn petersen<G>(
|
pub fn petersen<G: GraphTopologyAddition>(graph: &mut G) -> ([G::Vertex; 10], [G::Edge; 15]) {
|
||||||
graph: &mut G,
|
|
||||||
) -> (
|
|
||||||
[<G as GraphTopology>::Vertex; 10],
|
|
||||||
[<G as GraphTopology>::Edge; 15],
|
|
||||||
)
|
|
||||||
where
|
|
||||||
G: GraphTopologyAddition,
|
|
||||||
{
|
|
||||||
const N: usize = 5;
|
const N: usize = 5;
|
||||||
const K: usize = 2;
|
const K: usize = 2;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user