npm install
npm install express
node app.js
-
GET localhost:3000 to see the graph monitor
-
POST localhost:3000/draw/{nodes}/{edges}
Draws a graph with the given data in the monitor nodes is an array of integers ex. [1,2,3] edges is an array of arrays of two integers ex. [[1,2], [2,3]]
-
POST localhost:3000/clear
Clears the graph monitor
-
POST localhost:3000/addNode/{node}
Adds a node to the graph node is an integer ex. 1
-
POST localhost:3000/addEdge/{edge}
Adds an adge to the graph edge is an array with two integers ex. [1,2]