Taken from https://github.com/bobbydavid/dag-visualization
xxxxxxxxxx
<html>
<head>
<meta charset="utf-8">
<style>
body { background-color: #f5f5f5;}
svg { background-color: #fff; border: 1px solid #eee; }
.svgHolder { margin: 20px; }
.daglink { fill: none; }
</style>
</head>
<body>
<h2>DAG as force graph</h2>
<div class='svgHolder' id="force"></div>
<div class='svgHolder' id="dag"></div>
<footer>Robert Martin</footer>
<script type="text/javascript" src="https://d3js.org/d3.v3.js"></script>
<script type="text/javascript" src="dag.js"></script>
</body>
<html>
Modified http://d3js.org/d3.v3.js to a secure url
https://d3js.org/d3.v3.js