pub struct NodeData {
pub id: VertexId,
pub properties: HashId,
pub incoming: BTreeSet<HashId>,
pub outgoing: BTreeSet<HashId>,
}Fields§
§id: VertexIdUnique identifier of the node in the graph.
properties: HashIdThe key of the dataset that represents the properties of the node.
incoming: BTreeSet<HashId>A set of hashes representing incoming connections (edges) to this node.
outgoing: BTreeSet<HashId>A set of hashes representing outgoing connections (edges) from this node.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeData
impl<'de> Deserialize<'de> for NodeData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<P, K, E> PropertyGraphReader<Uuid, NodeData, String, EdgeData, String, P, Error<E>> for KvGraphStore<P, K, E>
impl<P, K, E> PropertyGraphReader<Uuid, NodeData, String, EdgeData, String, P, Error<E>> for KvGraphStore<P, K, E>
Source§fn nodes(
&self,
filter: PropertyFilter<HashId>,
) -> Result<impl Iterator<Item = VertexId>, Error<E>>
fn nodes( &self, filter: PropertyFilter<HashId>, ) -> Result<impl Iterator<Item = VertexId>, Error<E>>
List nodes
Source§fn edges(
&self,
filter: PropertyFilter<HashId>,
) -> Result<impl Iterator<Item = HashId>, Error<E>>
fn edges( &self, filter: PropertyFilter<HashId>, ) -> Result<impl Iterator<Item = HashId>, Error<E>>
List edges
Source§fn properties(
&self,
filter: PropertyFilter<HashId>,
) -> Result<impl Iterator<Item = HashId>, Error<E>>
fn properties( &self, filter: PropertyFilter<HashId>, ) -> Result<impl Iterator<Item = HashId>, Error<E>>
List properties
Auto Trait Implementations§
impl Freeze for NodeData
impl RefUnwindSafe for NodeData
impl Send for NodeData
impl Sync for NodeData
impl Unpin for NodeData
impl UnwindSafe for NodeData
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