pub struct CuGraph(pub StableGraph<Node, Cnx>);
Tuple Fields§
§0: StableGraph<Node, Cnx>
Implementations§
Source§impl CuGraph
impl CuGraph
pub fn get_all_nodes(&self) -> Vec<(u32, &Node)>
pub fn node_indices(&self) -> Vec<NodeIndex>
pub fn add_node(&mut self, node: Node) -> Result<u32, CuError>
pub fn connect_ext( &mut self, source: u32, target: u32, msg_type: &str, store: Option<bool>, missions: Option<Vec<String>>, ) -> Result<(), CuError>
Sourcepub fn get_node(&self, node_id: u32) -> Option<&Node>
pub fn get_node(&self, node_id: u32) -> Option<&Node>
Get the node with the given id. If mission_id is provided, get the node from that mission’s graph. Otherwise get the node from the simple graph.
pub fn get_node_weight(&self, index: u32) -> Option<&Node>
pub fn get_node_mut(&mut self, node_id: u32) -> Option<&mut Node>
pub fn get_edge_weight(&self, index: usize) -> Option<Cnx>
pub fn get_node_output_msg_type(&self, node_id: &str) -> Option<String>
pub fn get_node_input_msg_type(&self, node_id: &str) -> Option<String>
pub fn get_src_edges(&self, node_id: u32) -> Result<Vec<usize>, CuError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CuGraph
impl RefUnwindSafe for CuGraph
impl Send for CuGraph
impl Sync for CuGraph
impl Unpin for CuGraph
impl UnwindSafe for CuGraph
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