bug in add_edge() - now, is ok