Fix: add_edge with int