Struct mcai_graph::Graph
source · [−]pub struct Graph { /* private fields */ }Implementations
sourceimpl 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 !RefUnwindSafe for Graph
impl !Send for Graph
impl !Sync for Graph
impl Unpin for Graph
impl !UnwindSafe for Graph
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more