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
575 B

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