pub struct GraphState {
pub nodes: HashMap<NodeId, HashMap<String, PropertyValue>>,
pub edges: HashMap<EdgeId, (NodeId, NodeId, String, HashMap<String, PropertyValue>)>,
}Expand description
Simplified graph state for delta application
Fields§
§nodes: HashMap<NodeId, HashMap<String, PropertyValue>>Nodes with properties
edges: HashMap<EdgeId, (NodeId, NodeId, String, HashMap<String, PropertyValue>)>Edges
Implementations§
Source§impl GraphState
impl GraphState
Sourcepub fn apply_delta(&mut self, delta: &GraphDelta) -> Result<()>
pub fn apply_delta(&mut self, delta: &GraphDelta) -> Result<()>
Apply a graph delta
Sourcepub fn node_count(&self) -> usize
pub fn node_count(&self) -> usize
Get node count
Sourcepub fn edge_count(&self) -> usize
pub fn edge_count(&self) -> usize
Get edge count
Trait Implementations§
Source§impl Clone for GraphState
impl Clone for GraphState
Source§impl Debug for GraphState
impl Debug for GraphState
Auto Trait Implementations§
impl Forget for GraphState
impl Freeze for GraphState
impl Move for GraphState
impl RefUnwindSafe for GraphState
impl Send for GraphState
impl Sync for GraphState
impl Unpin for GraphState
impl UnsafeUnpin for GraphState
impl UnwindSafe for GraphState
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