[][src]Struct graph_neighbor_matching::graph::OwnedGraph

pub struct OwnedGraph<T: Debug + Clone> { /* fields omitted */ }

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 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

impl<T> Sync for OwnedGraph<T> where
    T: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.