pub struct Graph<VertexType, VertexStorageType, EdgeStorageType>where
VertexStorageType: StoreVertex<VertexType = VertexType>,
EdgeStorageType: EdgeManipulate,{
pub vertices: VertexStorageType,
pub edge_storage: EdgeStorageType,
}Fields§
§vertices: VertexStorageType§edge_storage: EdgeStorageTypeImplementations§
Source§impl<VertexType> Graph<VertexType, VertexStorage<VertexType>, EdgeStorage>
impl<VertexType> Graph<VertexType, VertexStorage<VertexType>, EdgeStorage>
Source§impl<VertexType, VertexStorageType, EdgeStorageType> Graph<VertexType, VertexStorageType, EdgeStorageType>where
EdgeStorageType: EdgeManipulate,
VertexStorageType: StoreVertex<VertexType = VertexType>,
impl<VertexType, VertexStorageType, EdgeStorageType> Graph<VertexType, VertexStorageType, EdgeStorageType>where
EdgeStorageType: EdgeManipulate,
VertexStorageType: StoreVertex<VertexType = VertexType>,
pub fn tree_view( &mut self, ) -> Tree<'_, VertexType, VertexStorageType, EdgeStorageType>
pub fn create_and_connect( &mut self, from: VHandle, val: VertexType, edge_count: Ci, ) -> VHandle
pub fn create_and_connect_0( &mut self, from: VHandle, val: VertexType, ) -> VHandle
pub fn create(&mut self, val: VertexType, edge_count: Ci) -> VHandle
pub fn create_leaf(&mut self, val: VertexType) -> VHandle
Trait Implementations§
Source§impl<VertexType, VertexStorageType, EdgeStorageType> Clone for Graph<VertexType, VertexStorageType, EdgeStorageType>where
EdgeStorageType: EdgeManipulate,
VertexType: Clone,
VertexStorageType: StoreVertex<VertexType = VertexType> + Clone,
impl<VertexType, VertexStorageType, EdgeStorageType> Clone for Graph<VertexType, VertexStorageType, EdgeStorageType>where
EdgeStorageType: EdgeManipulate,
VertexType: Clone,
VertexStorageType: StoreVertex<VertexType = VertexType> + Clone,
Source§impl<VertexType> Default for Graph<VertexType, VertexStorage<VertexType>, EdgeStorage>
impl<VertexType> Default for Graph<VertexType, VertexStorage<VertexType>, EdgeStorage>
Auto Trait Implementations§
impl<VertexType, VertexStorageType, EdgeStorageType> Freeze for Graph<VertexType, VertexStorageType, EdgeStorageType>
impl<VertexType, VertexStorageType, EdgeStorageType> RefUnwindSafe for Graph<VertexType, VertexStorageType, EdgeStorageType>where
VertexStorageType: RefUnwindSafe,
EdgeStorageType: RefUnwindSafe,
impl<VertexType, VertexStorageType, EdgeStorageType> Send for Graph<VertexType, VertexStorageType, EdgeStorageType>
impl<VertexType, VertexStorageType, EdgeStorageType> Sync for Graph<VertexType, VertexStorageType, EdgeStorageType>
impl<VertexType, VertexStorageType, EdgeStorageType> Unpin for Graph<VertexType, VertexStorageType, EdgeStorageType>
impl<VertexType, VertexStorageType, EdgeStorageType> UnwindSafe for Graph<VertexType, VertexStorageType, EdgeStorageType>where
VertexStorageType: UnwindSafe,
EdgeStorageType: UnwindSafe,
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