pub struct CoreDistributor {
pub strategy: CoreStrategy,
pub num_vertices: u16,
pub num_edges: u16,
}Expand description
Distribute graph across cores based on strategy
Fields§
§strategy: CoreStrategy§num_vertices: u16§num_edges: u16Implementations§
Source§impl CoreDistributor
impl CoreDistributor
pub fn new(strategy: CoreStrategy, num_vertices: u16, num_edges: u16) -> Self
Sourcepub fn vertex_to_core(&self, v: CompactVertexId) -> u8
pub fn vertex_to_core(&self, v: CompactVertexId) -> u8
Determine which core should handle a vertex
Sourcepub fn core_vertex_range(
&self,
core_id: u8,
) -> (CompactVertexId, CompactVertexId)
pub fn core_vertex_range( &self, core_id: u8, ) -> (CompactVertexId, CompactVertexId)
Get the range of vertices for a core
Auto Trait Implementations§
impl Freeze for CoreDistributor
impl RefUnwindSafe for CoreDistributor
impl Send for CoreDistributor
impl Sync for CoreDistributor
impl Unpin for CoreDistributor
impl UnwindSafe for CoreDistributor
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> 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