Struct graphic::UndirectedGraph
[−]
[src]
pub struct UndirectedGraph<A> { /* fields omitted */ }
An undirected graph
Methods
impl<A> UndirectedGraph<A>
[src]
fn connect_undirected(
&mut self,
one: VertexId,
other: VertexId,
weight: i64
) -> Result
[src]
&mut self,
one: VertexId,
other: VertexId,
weight: i64
) -> Result
Connects two vertices bidirectionally
fn new() -> UndirectedGraph<A>
[src]
fn vertex_value(&self, id: VertexId) -> Option<&A>
[src]
Retrieves a vertex value
fn vertex_value_mut(&mut self, id: VertexId) -> Option<&mut A>
[src]
Retrieves a vertex value
fn add_vertex(&mut self, value: A) -> VertexId
[src]
Retrieves the vertex value from the graph