|
|
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <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>
-
- <!-- Bootstrap -->
- <link href="css/bootstrap.min.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 type="text/javascript" src="./js/vis.js"></script>
-
- <style>
- body {
- padding:10px;
- }
-
- pre {
- width:450px;
- height:552px;
- overflow:auto;
- }
-
- #visualization {
- display:block;
- margin-left:470px;
- margin-top:-562px;
- width:500px;
- height:552px;
- border: 1px solid #dddddd;
- border-radius:4px;
- background-color:#fcfcfc;
- }
-
- div.textHTMLContent {
- margin-top:10px;
- margin-bottom:10px;
- display:block;
- width:800px;
- }
-
- img {
- border:1px solid #dddddd;
- width:250px;
- height:250px;
- border-radius:10px;
- margin-top:10px;
- }
- div.exampleTitle {
- position:relative;
- top:-7px;
- width:100%;
- max-width:250px;
- height:30px;
- background-color:#064880;
- color:#ffffff;
- text-align:center;
- vertical-align:middle;
- line-height: 30px;
- border-radius:10px;
- }
- </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});
- }
- </script>
-
- </head>
- <body onload="prettyPrint(); loadVis();">
- <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.</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('mynetwork');
- 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="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="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="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="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="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="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="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="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="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="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="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="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="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="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="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="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="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="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="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="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="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="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="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="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="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="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="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="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="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="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="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="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="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/graphviz/graphviz_exampleScreenshots.html">
- <img class="img-responsive" src="./images/exampleScreenshots/network/graphviz.png">
- <div class="exampleTitle">graphviz exampleScreenshots</div>
- </a>
- </div>
- </div>
- <br />
- <br />
- <br />
- <br />
-
- <!-- 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>
|