pub struct RandomPath<'g, G: ?Sized> {
pub graph: &'g G,
pub start: usize,
pub goal: usize,
}Expand description
Random simple paths from start to goal by randomised depth-first search. If the goal
is unreachable the genome is just [start], which PathLength scores +∞.
Fields§
§graph: &'g GThe graph.
start: usizeThe first vertex.
goal: usizeThe last vertex.
Trait Implementations§
impl<'g, G: Copy + ?Sized> Copy for RandomPath<'g, G>
Auto Trait Implementations§
impl<'g, G> Forget for RandomPath<'g, G>where
G: ?Sized,
impl<'g, G> Freeze for RandomPath<'g, G>
impl<'g, G> Move for RandomPath<'g, G>where
G: ?Sized,
impl<'g, G> RefUnwindSafe for RandomPath<'g, G>
impl<'g, G> Send for RandomPath<'g, G>
impl<'g, G> Sync for RandomPath<'g, G>
impl<'g, G> Unpin for RandomPath<'g, G>
impl<'g, G> UnsafeUnpin for RandomPath<'g, G>
impl<'g, G> UnwindSafe for RandomPath<'g, G>
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