fn capacities(&self, start: &str, end: &str) -> HashMap<String, Option<usize>> {
        self.adj.keys().map(|node| {
            if node == start || node == end { (node.clone(), Some(1)) }
            else if is_lower(node) { (node.clone(), Some(1)) }
            else { (node.clone(), None) }
        }).collect()
    }
// Mapping of number of times each node can be visited.
//
// None means unbounded number of visits.
Mapping of number of times each node can be visited.
None means unbounded number of visits.
Mapping of number of times each node can be visited . None means unbounded number of visits .
fn capacities(&self, start: &str, end: &str) -> HashMap<String, Option<usize>> {
        self.adj.keys().map(|node| {
            if node == start || node == end { (node.clone(), Some(1)) }
            else if is_lower(node) { (node.clone(), Some(1)) }
            else { (node.clone(), None) }
        }).collect()
    }
fn capacities ( & self , start : & str , end : & str ) -> HashMap < String , Option < usize > > { self . adj . keys ( ) . map ( | node | { if node == start || node == end { ( node . clone ( ) , Some ( 1 ) ) } else if is_lower ( node ) { ( node . clone ( ) , Some ( 1 ) ) } else { ( node . clone ( ) , None ) } } ) . collect ( ) }
Mapping of number of times each node can be visited.
Mapping of number of times each node can be visited .
&self
start
&str
end
&str