[−][src]Trait petgraph::matrix_graph::Zero
Base trait for types that can be wrapped in a NotZero
.
Implementors must provide a singleton object that will be used to mark empty edges in a
MatrixGraph
.
Note that this trait is already implemented for the base numeric types.
Required methods
pub fn zero() -> Self
[src]
Return the singleton object which can be used as a sentinel value.
pub fn is_zero(&self) -> bool
[src]
Return true if self
is equal to the sentinel value.