pub fn first_edge(&self, a: NodeIndex, dir: Direction) -> Option<EdgeIndex> {
        match self.nodes.get(a.index()) {
            None => None,
            Some(node) => {
                let edix = node.next[dir as usize];
                if edix == EdgeIndex::end() {
                    None
                } else {
                    Some(edix)
                }
            }
        }
    }
/// Accessor for data structure internals: the first edge in the given direction.
Accessor for data structure internals: the first edge in the given direction.
Accessor for data structure internals : the first edge in the given direction .
pub fn first_edge(&self, a: NodeIndex, dir: Direction) -> Option<EdgeIndex> {
        match self.nodes.get(a.index()) {
            None => None,
            Some(node) => {
                let edix = node.next[dir as usize];
                if edix == EdgeIndex::end() {
                    None
                } else {
                    Some(edix)
                }
            }
        }
    }
pub fn first_edge ( & self , a : NodeIndex , dir : Direction ) -> Option < EdgeIndex > { match self . nodes . get ( a . index ( ) ) { None => None , Some ( node ) => { let edix = node . next [ dir as usize ] ; if edix == EdgeIndex :: end ( ) { None } else { Some ( edix ) } } } }
Accessor for data structure internals: the first edge in the given direction.
Accessor for data structure internals : the first edge in the given direction .
&self
a
NodeIndex
dir
Direction