pub fn add_node(state: &Arc<Mutex<GraphState>>, node: NodeInfo)
Adds a node to the shared graph state.