pub struct StructuralFeatures {
pub num_vertices: usize,
pub num_features: usize,
pub features: Vec<f64>,
pub feature_names: Vec<&'static str>,
}Expand description
Per-vertex structural feature vector.
Fields§
§num_vertices: usizeNumber of vertices.
num_features: usizeNumber of features per vertex.
features: Vec<f64>Feature matrix in row-major order: features[v * num_features + f].
feature_names: Vec<&'static str>Feature names in column order.
Implementations§
Source§impl StructuralFeatures
impl StructuralFeatures
Sourcepub fn vertex_features(&self, v: usize) -> &[f64]
pub fn vertex_features(&self, v: usize) -> &[f64]
Get feature vector for vertex v.
Trait Implementations§
Source§impl Clone for StructuralFeatures
impl Clone for StructuralFeatures
Source§fn clone(&self) -> StructuralFeatures
fn clone(&self) -> StructuralFeatures
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 StructuralFeatures
impl Debug for StructuralFeatures
Source§impl PartialEq for StructuralFeatures
impl PartialEq for StructuralFeatures
impl StructuralPartialEq for StructuralFeatures
Auto Trait Implementations§
impl Freeze for StructuralFeatures
impl RefUnwindSafe for StructuralFeatures
impl Send for StructuralFeatures
impl Sync for StructuralFeatures
impl Unpin for StructuralFeatures
impl UnsafeUnpin for StructuralFeatures
impl UnwindSafe for StructuralFeatures
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