https://github.com/easbar/graphhopper-creator
a simple ui to visualize graphs used in graphhopper unit tests
https://github.com/easbar/graphhopper-creator
Last synced: 11 months ago
JSON representation
a simple ui to visualize graphs used in graphhopper unit tests
- Host: GitHub
- URL: https://github.com/easbar/graphhopper-creator
- Owner: easbar
- Created: 2016-11-14T02:32:23.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-14T02:34:54.000Z (over 9 years ago)
- Last Synced: 2025-03-18T05:16:08.030Z (over 1 year ago)
- Language: JavaScript
- Size: 847 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme
Awesome Lists containing this project
README
graph-ui
short description:
this tool can be used to draw a directed graph in the graph view on the left
and to print corresponding source code in the source view on the right.
the source code is given by very simple statements of the form
'graph.edge(2, 3).setDistance(5);'
for each edge, which can be parsed to create the graph. use the arrow buttons
to sync the two views. nodes and edges can also be added by clicking the graph
(see instructions below the graph). so far the edge weights and node labels
can only be modified in the source view.
installation:
* run 'npm install' from a command line
* see the scripts in package.json to build the app
* for example run 'npm run bundle' for the production version and
open app/index.html from a browser (tested with Firefox 49)
* to run the tests run 'npm run testBundle' and open spec/specRunner.html from
a browser