pub fn add_event( state: &Arc<Mutex<GraphState>>, event_type: &str, message: &str, )
Adds an event to the shared graph state.