pub struct MessagePassing<'a> {
pub graph: &'a str,
pub k_layers: u32,
pub aggregation: AggregationKind,
pub property_name: Option<String>,
}Fields§
§graph: &'a str§k_layers: u32§aggregation: AggregationKind§property_name: Option<String>Initial feature: Some(name) reads vertex.properties[name] and
uses 0.0 only when the property is absent. Present values must be a
finite float, an exactly representable integer, or a boolean. None
initializes every vertex to 1.0.
Implementations§
Source§impl<'a> MessagePassing<'a>
impl<'a> MessagePassing<'a>
pub fn new(graph: &'a str) -> Self
pub fn k_layers(self, k: u32) -> Self
pub fn aggregation(self, kind: AggregationKind) -> Self
pub fn property_name(self, name: impl Into<String>) -> Self
pub fn execute<G: GraphStore>( &self, store: &G, ) -> GraphStoreResult<GraphPostingList>
Auto Trait Implementations§
impl<'a> Freeze for MessagePassing<'a>
impl<'a> RefUnwindSafe for MessagePassing<'a>
impl<'a> Send for MessagePassing<'a>
impl<'a> Sync for MessagePassing<'a>
impl<'a> Unpin for MessagePassing<'a>
impl<'a> UnsafeUnpin for MessagePassing<'a>
impl<'a> UnwindSafe for MessagePassing<'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