fn mark_connections_visible(&mut self, id: usize, context: &ScreenContext) {
        if let Some(behavior) = context.data.get_behavior(self.get_curr_behavior_id(context), self.graph_type) {
            for (source_node_id , _source_connector, dest_node_id, _dest_connector) in &behavior.data.connections {
                if *source_node_id == id {
                    self.visible_node_ids.push(*dest_node_id);
                    self.mark_connections_visible(*dest_node_id, context);
                }
            }
        }
    }
/// Marks all connected nodes as visible
Marks all connected nodes as visible
Marks all connected nodes as visible
fn mark_connections_visible(&mut self, id: usize, context: &ScreenContext) {
        if let Some(behavior) = context.data.get_behavior(self.get_curr_behavior_id(context), self.graph_type) {
            for (source_node_id , _source_connector, dest_node_id, _dest_connector) in &behavior.data.connections {
                if *source_node_id == id {
                    self.visible_node_ids.push(*dest_node_id);
                    self.mark_connections_visible(*dest_node_id, context);
                }
            }
        }
    }
fn mark_connections_visible ( & mut self , id : usize , context : & ScreenContext ) { if let Some ( behavior ) = context . data . get_behavior ( self . get_curr_behavior_id ( context ) , self . graph_type ) { for ( source_node_id , _source_connector , dest_node_id , _dest_connector ) in & behavior . data . connections { if * source_node_id == id { self . visible_node_ids . push ( * dest_node_id ) ; self . mark_connections_visible ( * dest_node_id , context ) ; } } } }
Marks all connected nodes as visible
Marks all connected nodes as visible
&mut self
id
usize
context
&ScreenContext
&mut self
id
usize
context
&ScreenContext