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.

22 lines
614 B

  1. <html>
  2. <head>
  3. <title>Network | DOT Language</title>
  4. <script src="../../../../dist/vis.js"></script>
  5. <link href="../../../../dist/vis.css" rel="stylesheet" type="text/css" />
  6. <script src="../../../googleAnalytics.js"></script>
  7. </head>
  8. <body>
  9. <p>
  10. Network supports the DOT language.
  11. </p>
  12. <div id="mynetwork"></div>
  13. <script type="text/javascript">
  14. var container = document.getElementById('mynetwork');
  15. var dot = 'dinetwork {node[shape=circle]; 1 -> 1 -> 2; 2 -> 3; 2 -- 4; 2 -> 1 }';
  16. var data = vis.network.convertDot(dot);
  17. var network = new vis.Network(container, data);
  18. </script>
  19. </body>
  20. </html>