@@ -115,7 +115,7 @@ impl<N:Debug,E:Debug> Graph<N,E> {
115115 // Simple accessors
116116
117117 #[ inline]
118- pub fn all_nodes < ' a > ( & ' a self ) -> & ' a [ Node < N > ] {
118+ pub fn all_nodes ( & self ) -> & [ Node < N > ] {
119119 & self . nodes
120120 }
121121
@@ -125,7 +125,7 @@ impl<N:Debug,E:Debug> Graph<N,E> {
125125 }
126126
127127 #[ inline]
128- pub fn all_edges < ' a > ( & ' a self ) -> & ' a [ Edge < E > ] {
128+ pub fn all_edges ( & self ) -> & [ Edge < E > ] {
129129 & self . edges
130130 }
131131
@@ -150,15 +150,15 @@ impl<N:Debug,E:Debug> Graph<N,E> {
150150 idx
151151 }
152152
153- pub fn mut_node_data < ' a > ( & ' a mut self , idx : NodeIndex ) -> & ' a mut N {
153+ pub fn mut_node_data ( & mut self , idx : NodeIndex ) -> & mut N {
154154 & mut self . nodes [ idx. 0 ] . data
155155 }
156156
157- pub fn node_data < ' a > ( & ' a self , idx : NodeIndex ) -> & ' a N {
157+ pub fn node_data ( & self , idx : NodeIndex ) -> & N {
158158 & self . nodes [ idx. 0 ] . data
159159 }
160160
161- pub fn node < ' a > ( & ' a self , idx : NodeIndex ) -> & ' a Node < N > {
161+ pub fn node ( & self , idx : NodeIndex ) -> & Node < N > {
162162 & self . nodes [ idx. 0 ]
163163 }
164164
@@ -199,15 +199,15 @@ impl<N:Debug,E:Debug> Graph<N,E> {
199199 return idx;
200200 }
201201
202- pub fn mut_edge_data < ' a > ( & ' a mut self , idx : EdgeIndex ) -> & ' a mut E {
202+ pub fn mut_edge_data ( & mut self , idx : EdgeIndex ) -> & mut E {
203203 & mut self . edges [ idx. 0 ] . data
204204 }
205205
206- pub fn edge_data < ' a > ( & ' a self , idx : EdgeIndex ) -> & ' a E {
206+ pub fn edge_data ( & self , idx : EdgeIndex ) -> & E {
207207 & self . edges [ idx. 0 ] . data
208208 }
209209
210- pub fn edge < ' a > ( & ' a self , idx : EdgeIndex ) -> & ' a Edge < E > {
210+ pub fn edge ( & self , idx : EdgeIndex ) -> & Edge < E > {
211211 & self . edges [ idx. 0 ]
212212 }
213213
@@ -257,11 +257,11 @@ impl<N:Debug,E:Debug> Graph<N,E> {
257257 AdjacentEdges { graph : self , direction : direction, next : first_edge }
258258 }
259259
260- pub fn successor_nodes < ' a > ( & ' a self , source : NodeIndex ) -> AdjacentTargets < N , E > {
260+ pub fn successor_nodes ( & self , source : NodeIndex ) -> AdjacentTargets < N , E > {
261261 self . outgoing_edges ( source) . targets ( )
262262 }
263263
264- pub fn predecessor_nodes < ' a > ( & ' a self , target : NodeIndex ) -> AdjacentSources < N , E > {
264+ pub fn predecessor_nodes ( & self , target : NodeIndex ) -> AdjacentSources < N , E > {
265265 self . incoming_edges ( target) . sources ( )
266266 }
267267
0 commit comments