Type Definition fdg_sim::ForceGraph
source · [−]pub type ForceGraph<N, E> = StableGraph<Node<N>, E, Undirected>;
Expand description
A helper type that creates a StableGraph
with our custom Node
.
Trait Implementations
sourceimpl<N, E> ForceGraphHelper<N, E> for ForceGraph<N, E>
impl<N, E> ForceGraphHelper<N, E> for ForceGraph<N, E>
sourcefn add_force_node(&mut self, name: impl AsRef<str>, data: N) -> NodeIndex
fn add_force_node(&mut self, name: impl AsRef<str>, data: N) -> NodeIndex
Add a Node
to the graph with only the name and arbitrary data.