pub struct GraphProxy<'a> { /* private fields */ }
Implementations§
Source§impl<'a> GraphProxy<'a>
impl<'a> GraphProxy<'a>
pub fn out_edges<'b>( &'b mut self, source: &ProxyNodeId, ) -> Option<OutEdges<'a, 'b>>
pub fn in_edges<'b>( &'b mut self, target: &ProxyNodeId, ) -> Option<InEdges<'a, 'b>>
pub fn in_degree(&'a mut self, node: &ProxyNodeId) -> Option<usize>
pub fn out_degree(&'a mut self, node: &ProxyNodeId) -> Option<usize>
Source§impl<'a> GraphProxy<'a>
impl<'a> GraphProxy<'a>
pub fn new( repo: &'a mut GraphRepository, pattern: &PropertyGraph, ) -> Option<Self>
pub fn new_full(repo: &'a mut GraphRepository) -> Option<Self>
pub fn get_relationships_ref(&self) -> Vec<Option<&Relationship>>
pub fn get_edges_with_relationships( &self, ) -> &Vec<InnerEdgeData<ProxyNodeId, ProxyRelationshipId>>
Trait Implementations§
Source§impl<'a> GrowableGraphContainerTrait<ProxyNodeId, ProxyRelationshipId, Node, Relationship> for GraphProxy<'a>
impl<'a> GrowableGraphContainerTrait<ProxyNodeId, ProxyRelationshipId, Node, Relationship> for GraphProxy<'a>
fn get_node_ref(&mut self, pid: &ProxyNodeId) -> Option<&Node>
fn get_relationship_ref( &mut self, id: &ProxyRelationshipId, ) -> Option<&Relationship>
Source§impl<'a> GrowableGraphTrait<ProxyNodeId, ProxyRelationshipId> for GraphProxy<'a>
impl<'a> GrowableGraphTrait<ProxyNodeId, ProxyRelationshipId> for GraphProxy<'a>
fn get_source_index( &self, edge_index: &ProxyRelationshipId, ) -> Option<ProxyNodeId>
fn get_target_index( &self, edge_index: &ProxyRelationshipId, ) -> Option<ProxyNodeId>
fn nodes_len(&self) -> usize
fn edges_len(&self) -> usize
fn get_nodes_ids(&self) -> Vec<ProxyNodeId>
Auto Trait Implementations§
impl<'a> Freeze for GraphProxy<'a>
impl<'a> RefUnwindSafe for GraphProxy<'a>
impl<'a> Send for GraphProxy<'a>
impl<'a> Sync for GraphProxy<'a>
impl<'a> Unpin for GraphProxy<'a>
impl<'a> !UnwindSafe for GraphProxy<'a>
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