Struct opg::dfs::Dfs [−][src]
A struct to make DFS movement in an OOP code style. And perform DFS in a recurrent way.
Fields
mono: HashMap<String, HashSet<String>>con: HashMap<String, HashSet<String>>visited: HashSet<String>path: Vec<String>element: HashMap<String, i64>category: HashMap<i64, HashSet<String>>tree: HashMap<i64, HashSet<i64>>top: i64Implementations
impl Dfs[src]
fn new(
mono: HashMap<String, HashSet<String>>,
con: HashMap<String, HashSet<String>>
) -> Dfs[src]
mono: HashMap<String, HashSet<String>>,
con: HashMap<String, HashSet<String>>
) -> Dfs
fn dfs(&mut self) -> HashMap<String, HashSet<String>>[src]
fn dfs_merge(&mut self, node: String)[src]
Merge DFS
fn dfs_conn(&mut self, node: String, parent: Option<String>)[src]
connection DFS
fn dfs_map(&mut self, node: String, map: &mut HashSet<String>)[src]
map DFS
fn merge(&mut self, node: String)[src]
Merge New Category
Auto Trait Implementations
impl RefUnwindSafe for Dfs[src]
impl Send for Dfs[src]
impl Sync for Dfs[src]
impl Unpin for Dfs[src]
impl UnwindSafe for Dfs[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,