pub struct LocalSubgraph<const K: usize> {
pub graph_id: usize,
pub colored: bool,
pub cutoff: u32,
pub vertices: LocalVertexMap<K>,
pub edges: HashSet<LocalEdge<K>, FastBuildHasher>,
pub stats: LocalSubgraphStats,
}Fields§
§graph_id: usize§colored: bool§cutoff: u32§vertices: LocalVertexMap<K>§edges: HashSet<LocalEdge<K>, FastBuildHasher>§stats: LocalSubgraphStatsImplementations§
Source§impl<const K: usize> LocalSubgraph<K>
impl<const K: usize> LocalSubgraph<K>
pub fn from_bucket_path( path: impl AsRef<Path>, cutoff: u32, ) -> Result<Self, LocalSubgraphError>
pub fn from_manifest_entries( store: &BucketStore, entries: &[BucketManifestEntry], cutoff: u32, ) -> Result<Self, LocalSubgraphError>
pub fn vertex_state(&self, kmer: Kmer<K>) -> Option<&VertexState>
pub fn contract(&mut self) -> Result<Vec<LocalUnitig<K>>, LocalSubgraphError>
pub fn contract_compact( &mut self, ) -> Result<Vec<LocalUnitig<K>>, LocalSubgraphError>
pub fn contract_colored( &mut self, store: &BucketStore, entries: &[BucketManifestEntry], ) -> Result<Vec<ColoredLocalUnitig<K>>, LocalSubgraphError>
pub fn contract_colored_with_known<F>( &mut self, store: &BucketStore, entries: &[BucketManifestEntry], color_is_known: F, ) -> Result<Vec<ColoredLocalUnitig<K>>, LocalSubgraphError>
Trait Implementations§
Source§impl<const K: usize> Clone for LocalSubgraph<K>
impl<const K: usize> Clone for LocalSubgraph<K>
Source§fn clone(&self) -> LocalSubgraph<K>
fn clone(&self) -> LocalSubgraph<K>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<const K: usize> Debug for LocalSubgraph<K>
impl<const K: usize> Debug for LocalSubgraph<K>
impl<const K: usize> Eq for LocalSubgraph<K>
Source§impl<const K: usize> PartialEq for LocalSubgraph<K>
impl<const K: usize> PartialEq for LocalSubgraph<K>
impl<const K: usize> StructuralPartialEq for LocalSubgraph<K>
Auto Trait Implementations§
impl<const K: usize> Freeze for LocalSubgraph<K>
impl<const K: usize> RefUnwindSafe for LocalSubgraph<K>
impl<const K: usize> Send for LocalSubgraph<K>
impl<const K: usize> Sync for LocalSubgraph<K>
impl<const K: usize> Unpin for LocalSubgraph<K>
impl<const K: usize> UnsafeUnpin for LocalSubgraph<K>
impl<const K: usize> UnwindSafe for LocalSubgraph<K>
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self with key and returns true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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