fix add_edge method
string formatting