|
<html>
|
|
<head>
|
|
<style type="text/css">
|
|
#mynetwork {
|
|
width: 900px;
|
|
height: 850px;
|
|
border: 1px solid lightgray;
|
|
}
|
|
</style>
|
|
<link href="../../../dist/vis-network.min.css" rel="stylesheet" type="text/css" />
|
|
<script src="../../../dist/vis.js"></script>
|
|
<script src="disassemblerExample.js"></script>
|
|
</head>
|
|
<body>
|
|
<p>Use VisJS to diagram the Control-Flow-Graph (CFG) of a function from
|
|
a program you wish to analyze.</p>
|
|
<p><div id="mynetwork"></div><br /></p>
|
|
<script type="text/javascript">
|
|
var container = document.getElementById('mynetwork');
|
|
var data = {'nodes': nodes, 'edges': edges}
|
|
var gph = new vis.Network(container, data, options);
|
|
</script>
|
|
</body>
|
|
</html>
|