pub struct Diameter {
pub length: f64,
pub from: Option<VertexId>,
pub to: Option<VertexId>,
pub path: GraphPath,
}Expand description
The diameter of a graph together with one longest geodesic, see
Graph::diameter_with_path.
Fields§
§length: f64The diameter: the (weighted) length of the longest shortest path.
NaN for the null graph; INFINITY for disconnected graphs when
unconn is false.
from: Option<VertexId>Source of a longest geodesic (None if there is no such path).
to: Option<VertexId>Target of a longest geodesic (None if there is no such path).
path: GraphPathThe longest geodesic, by vertices and edges.
Trait Implementations§
impl StructuralPartialEq for Diameter
Auto Trait Implementations§
impl Freeze for Diameter
impl RefUnwindSafe for Diameter
impl Send for Diameter
impl Sync for Diameter
impl Unpin for Diameter
impl UnsafeUnpin for Diameter
impl UnwindSafe for Diameter
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