pub struct CondensedGraph {
pub adjacency: Array2<f64>,
pub features: Array2<f64>,
pub labels: Vec<usize>,
pub source_mapping: Vec<usize>,
}Expand description
A condensed (distilled) graph produced by condensation.
Fields§
§adjacency: Array2<f64>Adjacency matrix of the condensed graph (target_nodes x target_nodes).
features: Array2<f64>Feature matrix of the condensed graph (target_nodes x feature_dim).
labels: Vec<usize>Node labels in the condensed graph.
source_mapping: Vec<usize>Mapping from condensed node index to original node index. For synthetic methods (e.g. GradientMatching) this maps to the nearest original node.
Trait Implementations§
Source§impl Clone for CondensedGraph
impl Clone for CondensedGraph
Source§fn clone(&self) -> CondensedGraph
fn clone(&self) -> CondensedGraph
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 moreAuto Trait Implementations§
impl Freeze for CondensedGraph
impl RefUnwindSafe for CondensedGraph
impl Send for CondensedGraph
impl Sync for CondensedGraph
impl Unpin for CondensedGraph
impl UnsafeUnpin for CondensedGraph
impl UnwindSafe for CondensedGraph
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more