Simple Graph (sg) is a javascript library for representing graphs. You can use it not only in the browser, but in NodeJS as well. It depends on Buckets.
With node.js and npm installed in your system:
$ npm install
First, make sure you installed the dependencies. You'll need to have grunt-cli installed. For more information visit gruntjs homepage or gruntjs repository. It's a common practice to installed it globally, so if you don't have it:
$ npm install -g grunt-cli
$ grunt
This will jslint the library, run unit tests, and finally, minify it. It will notify you if something wrong happens. Otherwise, you will find the minified code in the build/ folder.
$ grunt doc
or:
$ grunt docs
You will find the generated documentation in the docs/ folder.
To run only the unit tests:
$ grunt test
To only lint the code:
$ grunt hint
or
$ grunt lint
Here are some things that you may contribute:
- Add more unit tests
-
Add more documentation strings - Add comments where code gets nasty
-
Graph visualization renderer- SimpleGraphViewer - Add some examples in the documentation
- Extract my custom buckets.MultiBag into the library (+ add documentation for it)