For more information about using Multigraph, see http://www.multigraph.org.
To work on the Multigraph code, prepare your computer by installing the required dev tools:
- npm
- nodejs
- browserify (
sudo npm install -g browserify
) - uglify-js (
sudo npm install -g uglify-js
) - jasmine-node (for running the unit tests,
sudo npm install -g uglify-js
)
These tools are not needed for simply viewing Multigraph graphs, but they are needed for working on the Multigraph code. (The only thing needed for viewing a graph is a browser).
Then, to obtain and work with the code, use the following steps.
git clone [email protected]:embeepea/js-multigraph
git submodule update --init --recursive
npm install
npm test
npm run build
npm run build-tests
After doing this, browse spec/index.html
to run the tests in the browser.
Browse spec/graphics/index.html
.
Create a new *.xml file in spec/mugl, and optionally edit spec/mugl/tests.js
; see
the comments in spec/mugl/README.md
for details. After adding a new *.xml file
and/or editing spec/mugl/tests.js
, run the command
npm run build-graph-tests
to update the tests, then browse spec/graphics/index.html
.
npm run build-all