Get rid of ref in signature
diff --git a/src/simple_paths.rs b/src/simple_paths.rs
index 3a16ade..7d698df 100644
--- a/src/simple_paths.rs
+++ b/src/simple_paths.rs
@@ -8,7 +8,6 @@
use crate::{
Direction::Outgoing,
visit::{
- GraphBase,
IntoNeighborsDirected,
NodeCount,
},
@@ -18,14 +17,13 @@
/// and at most `max_intermidiate_nodes`, if given, limited by graph's order otherwise
/// Simple path is path without repetitions
/// Algorithm is adopted from https://networkx.github.io/documentation/stable/reference/algorithms/generated/networkx.algorithms.simple_paths.all_simple_paths.html
-pub fn all_simple_paths<'g, TargetColl: 'g, G>(graph: &'g G,
- from: G::NodeId,
- to: G::NodeId,
- min_intermidiate_nodes: usize,
- max_intermidiate_nodes: Option<usize>) -> impl Iterator<Item=TargetColl> + 'g
+pub fn all_simple_paths<TargetColl, G>(graph: G,
+ from: G::NodeId,
+ to: G::NodeId,
+ min_intermidiate_nodes: usize,
+ max_intermidiate_nodes: Option<usize>) -> impl Iterator<Item=TargetColl>
where G: NodeCount,
- G: GraphBase<NodeId=<&'g G as GraphBase>::NodeId>,
- &'g G: IntoNeighborsDirected,
+ G: IntoNeighborsDirected,
G::NodeId: Eq + Hash,
TargetColl: FromIterator<G::NodeId>
{