pub struct CoordinateList<T> {
pub row_indices: Vec<usize>,
pub col_indices: Vec<usize>,
pub values: Vec<T>,
pub n_samples: usize,
}Expand description
Coordinate list
Represents the graph in COO (Coordinate) format - tensor-friendly
Fields§
§row_indices: Vec<usize>Row index
col_indices: Vec<usize>Column index
values: Vec<T>Edge weights
n_samples: usizeNumber of vertices in the graph
Trait Implementations§
Source§impl<T: Clone> Clone for CoordinateList<T>
impl<T: Clone> Clone for CoordinateList<T>
Source§fn clone(&self) -> CoordinateList<T>
fn clone(&self) -> CoordinateList<T>
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<T> Freeze for CoordinateList<T>
impl<T> RefUnwindSafe for CoordinateList<T>where
T: RefUnwindSafe,
impl<T> Send for CoordinateList<T>where
T: Send,
impl<T> Sync for CoordinateList<T>where
T: Sync,
impl<T> Unpin for CoordinateList<T>where
T: Unpin,
impl<T> UnsafeUnpin for CoordinateList<T>
impl<T> UnwindSafe for CoordinateList<T>where
T: UnwindSafe,
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> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
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