pub struct DinicGraph<'a, VertexType, VertexStorageType, EdgeStorageType>where
VertexStorageType: StoreVertex<VertexType = VertexType>,
EdgeStorageType: WeightedEdgeManipulate,{
pub vertices: &'a VertexStorageType,
pub edge_storage: EdgeStorageType,
pub layer_data: Array<Weight>,
}Fields§
§vertices: &'a VertexStorageType§edge_storage: EdgeStorageType§layer_data: Array<Weight>Implementations§
Source§impl<'a, VertexType, VertexStorageType, EdgeStorageType> DinicGraph<'a, VertexType, VertexStorageType, EdgeStorageType>where
VertexStorageType: StoreVertex<VertexType = VertexType>,
EdgeStorageType: WeightedEdgeManipulate,
VertexType: Debug + Display,
impl<'a, VertexType, VertexStorageType, EdgeStorageType> DinicGraph<'a, VertexType, VertexStorageType, EdgeStorageType>where
VertexStorageType: StoreVertex<VertexType = VertexType>,
EdgeStorageType: WeightedEdgeManipulate,
VertexType: Debug + Display,
pub fn from( vertices: &'a VertexStorageType, edge_storage: &EdgeStorageType, src_handle: VHandle, sink_handle: VHandle, ) -> Self
pub fn perform_search(&mut self, src_handle: VHandle, sink_handle: VHandle)
Auto Trait Implementations§
impl<'a, VertexType, VertexStorageType, EdgeStorageType> Freeze for DinicGraph<'a, VertexType, VertexStorageType, EdgeStorageType>where
EdgeStorageType: Freeze,
impl<'a, VertexType, VertexStorageType, EdgeStorageType> RefUnwindSafe for DinicGraph<'a, VertexType, VertexStorageType, EdgeStorageType>where
EdgeStorageType: RefUnwindSafe,
VertexStorageType: RefUnwindSafe,
impl<'a, VertexType, VertexStorageType, EdgeStorageType> !Send for DinicGraph<'a, VertexType, VertexStorageType, EdgeStorageType>
impl<'a, VertexType, VertexStorageType, EdgeStorageType> !Sync for DinicGraph<'a, VertexType, VertexStorageType, EdgeStorageType>
impl<'a, VertexType, VertexStorageType, EdgeStorageType> Unpin for DinicGraph<'a, VertexType, VertexStorageType, EdgeStorageType>where
EdgeStorageType: Unpin,
impl<'a, VertexType, VertexStorageType, EdgeStorageType> UnwindSafe for DinicGraph<'a, VertexType, VertexStorageType, EdgeStorageType>where
EdgeStorageType: UnwindSafe,
VertexStorageType: RefUnwindSafe,
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