Bug fix

- Fixed issue #31
- Fixed exception for graph initialized with 0 or 1 points