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)*.
|
||||
///
|
||||
/// [Petersen graph]: https://en.wikipedia.org/wiki/Petersen_graph
|
||||
pub fn petersen<G>(
|
||||
graph: &mut G,
|
||||
) -> (
|
||||
[<G as GraphTopology>::Vertex; 10],
|
||||
[<G as GraphTopology>::Edge; 15],
|
||||
)
|
||||
where
|
||||
G: GraphTopologyAddition,
|
||||
{
|
||||
pub fn petersen<G: GraphTopologyAddition>(graph: &mut G) -> ([G::Vertex; 10], [G::Edge; 15]) {
|
||||
const N: usize = 5;
|
||||
const K: usize = 2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user