refactored node API to include xyz coords
added in edge API
TODO: refactor edge API to include weights based on lengths