vis.js is a dynamic, browser-based visualization library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
696 B

  1. <html>
  2. <head>
  3. <style type="text/css">
  4. #mynetwork {
  5. width: 900px;
  6. height: 850px;
  7. border: 1px solid lightgray;
  8. }
  9. </style>
  10. <link href="../../../dist/vis-network.min.css" rel="stylesheet" type="text/css" />
  11. <script src="../../../dist/vis.js"></script>
  12. <script src="disassemblerExample.js"></script>
  13. </head>
  14. <body>
  15. <p>Use VisJS to diagram the Control-Flow-Graph (CFG) of a function from
  16. a program you wish to analyze.</p>
  17. <p><div id="mynetwork"></div><br /></p>
  18. <script type="text/javascript">
  19. var container = document.getElementById('mynetwork');
  20. var data = {'nodes': nodes, 'edges': edges}
  21. var gph = new vis.Network(container, data, options);
  22. </script>
  23. </body>
  24. </html>