|
|
- <!DOCTYPE html>
- <html lang="en">
- <head><script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-61231638-1', 'auto');ga('send', 'pageview');</script>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title>Network Examples</title>
- <link rel="icon" HREF="favicon.ico">
- <!-- Bootstrap -->
- <link href="./css/bootstrap.css" rel="stylesheet">
-
- <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
- <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
- <!--[if lt IE 9]>
- <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
- <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
- <![endif]-->
-
- <link href="./css/prettify.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="./js/prettify/prettify.js"></script>
- <script src="./dist/vis.js"></script>
- <link href="./dist/vis.css" rel="stylesheet" type="text/css" />
- <link href="./css/examples.css" rel="stylesheet" type="text/css" />
-
- <style>
- </style>
- <script language="JavaScript">
- function loadVis() {
- var nodes = [
- {id: 1, label: 'Node 1'},
- {id: 2, label: 'Node 2'},
- {id: 3, label: 'Node 3'},
- {id: 4, label: 'Node 4'},
- {id: 5, label: 'Node 5'}
- ];
-
- // create an array with edges
- var edges = [
- {from: 1, to: 2},
- {from: 1, to: 3},
- {from: 2, to: 4},
- {from: 2, to: 5}
- ];
-
- // create a network
- var container = document.getElementById('visualization');
- var data = {
- nodes: nodes,
- edges: edges
- };
- var network = new vis.Network(container, data, {clickToUse:true, stabilize:false});
- }
- </script>
-
- </head>
- <body onload="prettyPrint(); loadVis();">
-
-
- <div class="navbar-wrapper">
- <div class="container">
- <nav class="navbar navbar-inverse navbar-static-top" role="navigation">
- <div class="container">
- <div class="navbar-header">
- <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
- <span class="sr-only">Toggle navigation</span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- <a class="navbar-brand hidden-sm" href="./index.html">vis.js</a>
- </div>
- <div id="navbar" class="navbar-collapse collapse">
- <ul class="nav navbar-nav">
- <li class="active"><a href="./index.html#modules">Modules</a></li>
- <li><a href="./docs/index.html" target="_blank">Documentation <img class="icon" src="./images/external-link-icons/external-link-icon-white.png"></a></li>
- <li><a href="./blog.html">Blog</a></li>
- <li><a href="./index.html#download_install">Download</a></li>
- <li><a href="./showcase/index.html">Showcase</a></li>
- <li><a href="./index.html#contribute">Contribute</a></li>
- <li><a href="./featureRequests.html">Feature requests</a></li>
- <li><a href="./index.html#licenses">License</a></li>
- </ul>
- </div>
- </div>
- </nav>
-
- </div>
- </div>
-
- <div class="contentWrapper">
- <h1>Network Examples</h1><a class="btn btn-default" href="#allExamples" role="button">View all examples »</a> <a class="btn btn-primary" href="./docs/network.html" role="button">View docs »</a>
-
- <div class="textHTMLContent">This small code example shows the easiest way to get a network up and running. This code has been taken from example 1. The working example is shown next to it. (click it to start interacting with it).</div>
- <pre class="prettyprint lang-html">
- <div id="visualization"></div>
- <script type="text/javascript">
- // create an array with nodes
- var nodes = [
- {id: 1, label: 'Node 1'},
- {id: 2, label: 'Node 2'},
- {id: 3, label: 'Node 3'},
- {id: 4, label: 'Node 4'},
- {id: 5, label: 'Node 5'}
- ];
-
- // create an array with edges
- var edges = [
- {from: 1, to: 2},
- {from: 1, to: 3},
- {from: 2, to: 4},
- {from: 2, to: 5}
- ];
-
- // create a network
- var container = document.getElementById('visualization');
- var data = {
- nodes: nodes,
- edges: edges
- };
- var network = new vis.Network(container, data, {});
- </script>
- </pre>
- <div id="visualization"></div>
-
- <h2 id="allExamples">All examples</h2>
- <div class="container-fluid">
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/01_basic_usage.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/1.png" >
- <div class="exampleTitle">basic usage</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/02_random_nodes.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/2.png">
- <div class="exampleTitle">random nodes</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/03_images.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/3.png">
- <div class="exampleTitle">images</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/04_shapes.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/4.png">
- <div class="exampleTitle">shapes</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/05_social_network.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/5.png">
- <div class="exampleTitle">social network</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/06_groups.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/6.png">
- <div class="exampleTitle">groups</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/07_selections.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/7.png">
- <div class="exampleTitle">selections</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/08_mobile_friendly.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/8.png">
- <div class="exampleTitle">mobile friendly</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/09_sizing.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/9.png">
- <div class="exampleTitle">sizing</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/10_multiline_text.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/10.png">
- <div class="exampleTitle">multiline text</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/11_custom_style.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/11.png">
- <div class="exampleTitle">custom style</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/12_scalable_images.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/12.png">
- <div class="exampleTitle">scalable images</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/13_dashed_lines.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/13.png">
- <div class="exampleTitle">dashed lines</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/14_dot_language.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/14.png">
- <div class="exampleTitle">dot language</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/15_dot_language_playground.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/15.png">
- <div class="exampleTitle">playground</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/16_dynamic_data.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/16.png">
- <div class="exampleTitle">dynamic data</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/17_network_info.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/17.png">
- <div class="exampleTitle">network info</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/18_fully_random_nodes_clustering.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/18.png">
- <div class="exampleTitle">fully random nodes clustering</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/19_scale_free_graph_clustering.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/19.png">
- <div class="exampleTitle">scale free graph clustering</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/20_navigation.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/20.png">
- <div class="exampleTitle">navigation</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/21_data_manipulation.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/21.png">
- <div class="exampleTitle">data manipulation</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/22_les_miserables.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/22.png">
- <div class="exampleTitle">les miserables</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/23_hierarchical_layout.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/23.png">
- <div class="exampleTitle">hierarchical layout</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/24_hierarchical_layout_userdefined.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/24.png">
- <div class="exampleTitle">hierarchical layout userdefined</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/25_physics_configuration.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/25.png">
- <div class="exampleTitle">physics configuration</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/26_staticSmoothCurves.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/26.png">
- <div class="exampleTitle">static smooth curves</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/27_world_cup_network.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/27.png">
- <div class="exampleTitle">world cup network</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/28_world_cup_network_performance.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/28.png">
- <div class="exampleTitle">world cup network performance</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/29_neighbourhood_highlight.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/29.png">
- <div class="exampleTitle">neighborhood highlight</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/30_importing_from_gephi.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/30.png">
- <div class="exampleTitle">importing from gephi</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/31_localization.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/31.png">
- <div class="exampleTitle">localization</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/32_hierarchicaLayoutMethods.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/32.png">
- <div class="exampleTitle">hierarchical layout methods</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/33_animation.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/33.png">
- <div class="exampleTitle">animation</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/34_circular_images.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/34.png">
- <div class="exampleTitle">circular images</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/35_label_stroke.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/35.png">
- <div class="exampleTitle">label stroke</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/36_HTML_in_Nodes.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/36.png">
- <div class="exampleTitle">HTML in nodes!</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/37_label_alignment.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/37.png">
- <div class="exampleTitle">labelAlignment for edges</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/38_node_as_icon.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/38.png">
- <div class="exampleTitle">node as icon</div>
- </a>
- </div>
- <div class="col-lg-2 col-md-3 col-sm-6">
- <a href="examples/network/graphviz/graphviz_gallery.html">
- <img class="example img-responsive" src="./images/exampleScreenshots/network/graphviz.png">
- <div class="exampleTitle">graphviz examples</div>
- </a>
- </div>
- </div>
- <br />
- <br />
- <br />
- <br />
-
- </div>
- <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
- <!-- Include all compiled plugins (below), or include individual files as needed -->
- <script src="js/bootstrap.min.js"></script>
- </body>
- </html>
|