this prevents vertex_ from being const, we should replace it by static method