pub struct GroupDetectionResult {
pub groups: Vec<EntityGroup>,
pub node_groups: HashMap<NodeId, Vec<u64>>,
pub total_groups: usize,
pub groups_by_type: HashMap<String, usize>,
}Expand description
Results of group detection.
Fields§
§groups: Vec<EntityGroup>All detected groups.
node_groups: HashMap<NodeId, Vec<u64>>Node to group membership mapping.
total_groups: usizeTotal groups detected.
groups_by_type: HashMap<String, usize>Groups by type.
Implementations§
Source§impl GroupDetectionResult
impl GroupDetectionResult
Sourcepub fn groups_for_node(&self, node_id: NodeId) -> Vec<&EntityGroup>
pub fn groups_for_node(&self, node_id: NodeId) -> Vec<&EntityGroup>
Returns groups containing a specific node.
Sourcepub fn node_features(&self, node_id: NodeId) -> Vec<f64>
pub fn node_features(&self, node_id: NodeId) -> Vec<f64>
Returns group membership features for a node.
Sourcepub fn feature_dim() -> usize
pub fn feature_dim() -> usize
Returns feature dimension.
Trait Implementations§
Source§impl Clone for GroupDetectionResult
impl Clone for GroupDetectionResult
Source§fn clone(&self) -> GroupDetectionResult
fn clone(&self) -> GroupDetectionResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GroupDetectionResult
impl Debug for GroupDetectionResult
Source§impl Default for GroupDetectionResult
impl Default for GroupDetectionResult
Source§fn default() -> GroupDetectionResult
fn default() -> GroupDetectionResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GroupDetectionResult
impl<'de> Deserialize<'de> for GroupDetectionResult
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
Auto Trait Implementations§
impl Freeze for GroupDetectionResult
impl RefUnwindSafe for GroupDetectionResult
impl Send for GroupDetectionResult
impl Sync for GroupDetectionResult
impl Unpin for GroupDetectionResult
impl UnwindSafe for GroupDetectionResult
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