pub struct SugiyamaResult {
pub positions: Vec<[f64; 2]>,
pub dummy_positions: Vec<[f64; 2]>,
pub extended_graph: Graph,
pub extended_to_orig_eids: Vec<u32>,
}Expand description
Result of a Sugiyama layout computation.
Fields§
§positions: Vec<[f64; 2]>Positions [x, y] for each vertex in the original graph (indices 0..vcount).
dummy_positions: Vec<[f64; 2]>Positions of dummy vertices added for long edges (indices vcount..).
extended_graph: GraphThe extended graph containing both original and dummy vertices. Each edge spans exactly one layer and points downward.
extended_to_orig_eids: Vec<u32>For each edge in extended_graph, the index of the corresponding
original edge. Multiple extended edges map to the same original edge
when dummy nodes split a long edge.
Trait Implementations§
Source§impl Clone for SugiyamaResult
impl Clone for SugiyamaResult
Source§fn clone(&self) -> SugiyamaResult
fn clone(&self) -> SugiyamaResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for SugiyamaResult
impl !RefUnwindSafe for SugiyamaResult
impl Send for SugiyamaResult
impl !Sync for SugiyamaResult
impl Unpin for SugiyamaResult
impl UnsafeUnpin for SugiyamaResult
impl UnwindSafe for SugiyamaResult
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