pub struct GraphContainer<NODE: Clone, RELATIONSHIP: Clone> { /* private fields */ }Implementations§
Source§impl<NODE: Clone, RELATIONSHIP: Clone> GraphContainer<NODE, RELATIONSHIP>
impl<NODE: Clone, RELATIONSHIP: Clone> GraphContainer<NODE, RELATIONSHIP>
pub fn get_node_mut(&mut self, id: &NodeIndex) -> &mut NODE
pub fn get_relationship_mut(&mut self, id: &EdgeIndex) -> &mut RELATIONSHIP
pub fn get_node_ref(&self, id: &NodeIndex) -> &NODE
pub fn get_relationship_ref(&self, id: &EdgeIndex) -> &RELATIONSHIP
Source§impl<NODE: Clone, RELATIONSHIP: Clone> GraphContainer<NODE, RELATIONSHIP>
impl<NODE: Clone, RELATIONSHIP: Clone> GraphContainer<NODE, RELATIONSHIP>
Source§impl<NODE: Clone, RELATIONSHIP: Clone> GraphContainer<NODE, RELATIONSHIP>
impl<NODE: Clone, RELATIONSHIP: Clone> GraphContainer<NODE, RELATIONSHIP>
Source§impl<NODE: Clone, RELATIONSHIP: Clone> GraphContainer<NODE, RELATIONSHIP>
impl<NODE: Clone, RELATIONSHIP: Clone> GraphContainer<NODE, RELATIONSHIP>
pub fn new() -> Self
pub fn add_node(&mut self, node: NODE) -> NodeIndex
pub fn add_relationship( &mut self, rel: RELATIONSHIP, source: NodeIndex, target: NodeIndex, ) -> EdgeIndex
pub fn insert_node( &mut self, node: NODE, edge_index: &EdgeIndex, ) -> (EdgeIndex, EdgeIndex)
pub fn get_inner_graph(&self) -> &Graph<NODE, RELATIONSHIP>
pub fn get_relationships_and_edges( &self, ) -> Vec<&EdgeData<NodeIndex, EdgeIndex, RELATIONSHIP>>
pub fn get_nodes_with_ids(&self) -> Vec<(&NODE, NodeIndex)>
pub fn get_relationships(&self) -> Vec<&RELATIONSHIP>
pub fn get_relationships_mut(&mut self) -> Vec<&mut RELATIONSHIP>
pub fn get_edges(&self) -> Vec<&EdgeData<NodeIndex, EdgeIndex, RELATIONSHIP>>
pub fn get_edges_mut( &mut self, ) -> &mut Vec<EdgeData<NodeIndex, EdgeIndex, RELATIONSHIP>>
pub fn get_nodes(&self) -> Vec<&NODE>
pub fn get_nodes_mut(&mut self) -> Vec<&mut NODE>
Trait Implementations§
Auto Trait Implementations§
impl<NODE, RELATIONSHIP> Freeze for GraphContainer<NODE, RELATIONSHIP>
impl<NODE, RELATIONSHIP> RefUnwindSafe for GraphContainer<NODE, RELATIONSHIP>where
NODE: RefUnwindSafe,
RELATIONSHIP: RefUnwindSafe,
impl<NODE, RELATIONSHIP> Send for GraphContainer<NODE, RELATIONSHIP>
impl<NODE, RELATIONSHIP> Sync for GraphContainer<NODE, RELATIONSHIP>
impl<NODE, RELATIONSHIP> Unpin for GraphContainer<NODE, RELATIONSHIP>
impl<NODE, RELATIONSHIP> UnwindSafe for GraphContainer<NODE, RELATIONSHIP>where
NODE: UnwindSafe,
RELATIONSHIP: UnwindSafe,
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