pub struct Digraph<I> { /* private fields */ }
Expand description
A directed graph on top of Inspect.
Implementations§
Source§impl<I> Digraph<I>where
I: VertexId,
impl<I> Digraph<I>where
I: VertexId,
Sourcepub fn new(parent: &Node, options: DigraphOpts) -> Digraph<I>
pub fn new(parent: &Node, options: DigraphOpts) -> Digraph<I>
Create a new directed graph under the given parent
node.
Sourcepub fn add_vertex<'a, M>(&self, id: I, initial_metadata: M) -> Vertex<I>where
M: IntoIterator<Item = Metadata<'a>>,
pub fn add_vertex<'a, M>(&self, id: I, initial_metadata: M) -> Vertex<I>where
M: IntoIterator<Item = Metadata<'a>>,
Add a new vertex to the graph identified by the given ID and with the given initial metadata.
Trait Implementations§
Auto Trait Implementations§
impl<I> Freeze for Digraph<I>
impl<I> !RefUnwindSafe for Digraph<I>
impl<I> Send for Digraph<I>where
I: Send,
impl<I> Sync for Digraph<I>where
I: Sync,
impl<I> Unpin for Digraph<I>where
I: Unpin,
impl<I> !UnwindSafe for Digraph<I>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more