pub trait Node {
type Name: AsRef<str>;
// Required methods
fn index(&self) -> usize;
fn name(&self) -> Self::Name;
}
Expand description
Represents a node in a graph
use graph_theory::GraphEngine;
pub trait Node {
type Name: AsRef<str>;
// Required methods
fn index(&self) -> usize;
fn name(&self) -> Self::Name;
}
Represents a node in a graph
use graph_theory::GraphEngine;