pub fn new(size: usize) -> Self {
        let mut vertices = Vec::with_capacity(size);
        vertices.extend(
            (0..size)
                .map(|i| A::new(i, T::new_from_index(i)))
        );
        Self{
            vertices,
            next_id: size,
            edge_count: 0,
            phantom: PhantomData,
        }
    }
/// Create new graph with `size` nodes
/// and no edges
Create new graph with `size` nodes
and no edges
Create new graph with ` size ` nodes and no edges
pub fn new(size: usize) -> Self {
        let mut vertices = Vec::with_capacity(size);
        vertices.extend(
            (0..size)
                .map(|i| A::new(i, T::new_from_index(i)))
        );
        Self{
            vertices,
            next_id: size,
            edge_count: 0,
            phantom: PhantomData,
        }
    }
pub fn new ( size : usize ) -> Self { let mut vertices = Vec :: with_capacity ( size ) ; vertices . extend ( ( 0 .. size ) . map ( | i | A :: new ( i , T :: new_from_index ( i ) ) ) ) ; Self { vertices , next_id : size , edge_count : 0 , phantom : PhantomData , } }
Create new graph with `size` nodes
and no edges
Create new graph with ` size ` nodes and no edges
size
usize
size
usize