pub struct SpectralGraphAnalysis;Expand description
Spectral graph analysis utilities
Implementations§
Source§impl SpectralGraphAnalysis
impl SpectralGraphAnalysis
Sourcepub fn compute_laplacian(
graph: &GraphData,
laplacian_type: LaplacianType,
) -> Result<Array2<f32>, TorshError>
pub fn compute_laplacian( graph: &GraphData, laplacian_type: LaplacianType, ) -> Result<Array2<f32>, TorshError>
Compute graph Laplacian matrix
Sourcepub fn spectral_embedding(
graph: &GraphData,
num_components: usize,
) -> Result<Tensor, TorshError>
pub fn spectral_embedding( graph: &GraphData, num_components: usize, ) -> Result<Tensor, TorshError>
Compute spectral embedding using eigendecomposition (simplified power iteration)
Sourcepub fn compute_spectrum(graph: &GraphData, num_eigenvalues: usize) -> Vec<f32>
pub fn compute_spectrum(graph: &GraphData, num_eigenvalues: usize) -> Vec<f32>
Compute graph spectrum (eigenvalues) - simplified version
Sourcepub fn spectral_clustering(
graph: &GraphData,
num_clusters: usize,
) -> Result<Vec<usize>, TorshError>
pub fn spectral_clustering( graph: &GraphData, num_clusters: usize, ) -> Result<Vec<usize>, TorshError>
Spectral clustering
Auto Trait Implementations§
impl Freeze for SpectralGraphAnalysis
impl RefUnwindSafe for SpectralGraphAnalysis
impl Send for SpectralGraphAnalysis
impl Sync for SpectralGraphAnalysis
impl Unpin for SpectralGraphAnalysis
impl UnsafeUnpin for SpectralGraphAnalysis
impl UnwindSafe for SpectralGraphAnalysis
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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