pub struct Mapping<'m, 'g> { /* private fields */ }
Expand description
A mapping between a source graph and an architecture.
Equivalent of SCOTCH_Mapping
.
Implementations§
source§impl<'m, 'g> Mapping<'m, 'g>
impl<'m, 'g> Mapping<'m, 'g>
sourcepub fn compute(
&mut self,
strategy: &mut Strategy
) -> Result<&mut Mapping<'m, 'g>>
pub fn compute( &mut self, strategy: &mut Strategy ) -> Result<&mut Mapping<'m, 'g>>
Equivalent of SCOTCH_graphMapCompute
.
Mutability
While this function modifies neither the graph nor the strategy, Scotch doesn’t specify any
const
modifier and the Rust borrows must be mutable.
sourcepub fn write_to_stdout(&self) -> Result<()>
pub fn write_to_stdout(&self) -> Result<()>
Write the mapping to standard output.
This function closes standard output.
Convenience wrapper around SCOTCH_graphMapSave
.
sourcepub fn write_to_stderr(&self) -> Result<()>
pub fn write_to_stderr(&self) -> Result<()>
Write the mapping to standard error.
This function closes standard error.
Convenience wrapper around SCOTCH_graphMapSave
.