- Add vertex number when it is created.
- Edge weight can be only double now.