fix double add to jgrapht