fixed segfault due to too low size in a vector in EdgeGraph