$ npm install planar-graph-to-svgConverts a planar graph to an SVG string
var toSVG = require('planar-graph-to-svg')
var ch = require('convex-hull')
var points = []
for(var i=0; i<100; ++i) {
points.push([Math.random(), Math.random()])
}
console.log(toSVG(ch(points), points))
Output:
npm i planar-graph-to-svg
var svg = require('planar-graph-to-svg')(edges,positions[,options])edges is an array of oriented edges for the planar graphpositions is an array of vertex positionsoptions is an array of options for the planar graphReturns An SVG string encoding the planar graph
(c) 2015 Mikola Lysenko. MIT License