pub struct Graph { /* private fields */ }
Implementations§
Source§impl Graph
impl Graph
pub fn new(configuration: GraphConfiguration) -> Self
pub fn nodes(&self) -> HashMap<u32, SharedNode>
pub fn add_node(&mut self, id: u32, coordinates: Coordinates) -> SharedNode
pub fn get_node(&self, id: u32) -> Option<SharedNode>
pub fn get_links(&self, link_type: LinkType) -> Vec<Link>
pub fn move_node(&mut self, id: u32, coordinates: Coordinates)
pub fn connect(&mut self, src_id: u32, dst_id: u32, link_type: &LinkType)
pub fn disconnect(&mut self, src_id: u32, dst_id: u32, link_type: &LinkType)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Graph
impl !RefUnwindSafe for Graph
impl !Send for Graph
impl !Sync for Graph
impl Unpin for Graph
impl !UnwindSafe for Graph
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