pub fn add_edge(state: &Arc<Mutex<GraphState>>, edge: EdgeInfo)
Adds an edge to the shared graph state.