var R = require("ramda")
module.exports = function(nodes, links, options = { })
{
options.width = R.has("width", options) ? +options.width : 500;
options.height = R.has("height", options) ? +options.height : 300;
var JSONObject = { graph: { nodes, links }, width: options.width, height: options.height };
return "<center>" +
"<style>.node { stroke: #fff; stroke-width: 1.5px; }" +
".link { stroke: #999; stroke-opacity: .6; }" +
"</style>" +
"<svg width = " +
options.width + " height = " + options.height + " ></svg>" +
"<script src='https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js'></script>" +
"<script>(" + toHTMLD3Graph + ")(" + JSON.stringify(JSONObject)+ ")</script>";
}
module.exports([{ "group":0, "name": 0}, { "group":0, "name": 1}],[{ source:0, target: 1, value:0.9}])