[−][src]Struct graph_neighbor_matching::graph::OwnedGraph
Methods
impl<T: Debug + Clone> OwnedGraph<T>
[src]
pub fn new(nodes: Vec<Node<T>>) -> OwnedGraph<T>
[src]
pub fn nodes(&self) -> &[Node<T>]
[src]
pub fn from_petgraph(pg: &PetGraph<T, Closed01<f32>, Directed>) -> OwnedGraph<T>
[src]
pub fn to_petgraph(&self) -> PetGraph<T, Closed01<f32>, Directed>
[src]
pub fn len(&self) -> usize
[src]
pub fn push_empty_node(&mut self, node_value: T) -> usize
[src]
Trait Implementations
impl<T: Debug + Clone> Graph for OwnedGraph<T>
[src]
type EDGE = EdgeList
type NODE = T
fn num_nodes(&self) -> usize
[src]
fn node_value(&self, node_idx: usize) -> &Self::NODE
[src]
fn node_degree(&self, node_idx: usize) -> usize
[src]
fn in_edges_of<'b>(&'b self, node_idx: usize) -> &'b Self::EDGE
[src]
fn out_edges_of<'b>(&'b self, node_idx: usize) -> &'b Self::EDGE
[src]
fn to_petgraph(&self) -> PetGraph<Self::NODE, Closed01<f32>, Directed>
[src]
impl<T: Debug + Debug + Clone> Debug for OwnedGraph<T>
[src]
Auto Trait Implementations
impl<T> Send for OwnedGraph<T> where
T: Send,
T: Send,
impl<T> Sync for OwnedGraph<T> where
T: Sync,
T: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,