|
|
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>JS Bin</title>
- <script type="text/javascript" src="../dist/vis.js"></script>
- <link href="../dist/vis.css" rel="stylesheet" type="text/css"/>
- <style>
- #mynetwork {
- width: 1200px;
- height: 750px;
- border: 1px solid lightgray;
- }
- </style>
-
-
- <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
- <link rel="stylesheet" href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
-
- </head>
- <body>
-
- <p>
- Create a simple network with some nodes and edges.
- </p>
- <input type="button" onclick="window.clusterPlease()" value="Cluster all nodes By AS">
- <div id="mynetwork"></div>
-
- <script type="text/javascript">
- var nodes = [{
- "group": "18015",
- "title": "",
- "label": "180.189.223.1",
- "AS": "18015",
- "mass": 1,
- "id": "180.189.223.1"
- }, {
- "group": "23655",
- "title": "",
- "label": "111.69.27.36",
- "AS": "23655",
- "mass": 1,
- "id": "111.69.27.36"
- }, {
- "group": "23655",
- "title": "",
- "label": "123.255.40.191",
- "AS": "23655",
- "mass": 1,
- "id": "123.255.40.191"
- }, {
- "group": "9560",
- "title": "",
- "label": "192.203.154.145",
- "AS": "9560",
- "mass": 1,
- "id": "192.203.154.145"
- }, {
- "group": "9560",
- "title": "",
- "label": "192.203.154.142",
- "AS": "9560",
- "mass": 1,
- "id": "192.203.154.142"
- }, {
- "group": "37979",
- "title": "",
- "label": "Private 17565-1",
- "AS": "37979",
- "mass": 1,
- "id": "Private 17565-1"
- }, {
- "group": "4768",
- "title": "",
- "label": "Private 10650-1",
- "AS": "4768",
- "mass": 1,
- "id": "Private 10650-1"
- }, {
- "group": "9431",
- "title": "",
- "label": "130.216.95.105",
- "AS": "9431",
- "mass": 1,
- "id": "130.216.95.105"
- }, {
- "group": "17746",
- "title": "",
- "label": "Probe 19326",
- "AS": "17746",
- "mass": 1,
- "id": "Probe 19326"
- }, {
- "group": "24398",
- "title": "",
- "label": "156.62.1.7",
- "AS": "24398",
- "mass": 1,
- "id": "156.62.1.7"
- }, {
- "group": "24398",
- "title": "",
- "label": "Private 11843-2",
- "AS": "24398",
- "mass": 1,
- "id": "Private 11843-2"
- }, {
- "group": "24398",
- "title": "",
- "label": "Private 11843-3",
- "AS": "24398",
- "mass": 1,
- "id": "Private 11843-3"
- }, {
- "group": "24398",
- "title": "",
- "label": "Probe 11843",
- "AS": "24398",
- "mass": 1,
- "id": "Probe 11843"
- }, {
- "group": "37979",
- "title": "",
- "label": "Probe 17565",
- "AS": "37979",
- "mass": 1,
- "id": "Probe 17565"
- }, {
- "group": "4768",
- "title": "",
- "label": "218.101.61.101",
- "AS": "4768",
- "mass": 1,
- "id": "218.101.61.101"
- }, {
- "group": "4771",
- "title": "",
- "label": "125.236.168.1",
- "AS": "4771",
- "mass": 1,
- "id": "125.236.168.1"
- }, {
- "group": "23655",
- "title": "",
- "label": "111.69.53.81",
- "AS": "23655",
- "mass": 1,
- "id": "111.69.53.81"
- }, {
- "group": "9560",
- "title": "",
- "label": "192.203.154.78",
- "AS": "9560",
- "mass": 1,
- "id": "192.203.154.78"
- }, {
- "group": "9503",
- "title": "",
- "label": "202.53.187.94",
- "AS": "9503",
- "mass": 1,
- "id": "202.53.187.94"
- }, {
- "group": "56030",
- "title": "",
- "label": "114.23.0.244",
- "AS": "56030",
- "mass": 1,
- "id": "114.23.0.244"
- }, {
- "group": "56216",
- "title": "",
- "label": "202.90.44.12",
- "AS": "56216",
- "mass": 1,
- "id": "202.90.44.12"
- }, {
- "group": "45177",
- "title": "",
- "label": "120.136.0.131",
- "AS": "45177",
- "mass": 1,
- "id": "120.136.0.131"
- }, {
- "group": "4771",
- "title": "",
- "label": "125.236.173.140",
- "AS": "4771",
- "mass": 1,
- "id": "125.236.173.140"
- }, {
- "group": "9431",
- "title": "",
- "label": "Probe 12197",
- "AS": "9431",
- "mass": 1,
- "id": "Probe 12197"
- }, {
- "group": "9503",
- "title": "",
- "label": "202.53.187.33",
- "AS": "9503",
- "mass": 1,
- "id": "202.53.187.33"
- }, {
- "group": "9431",
- "title": "",
- "label": "130.216.38.254",
- "AS": "9431",
- "mass": 1,
- "id": "130.216.38.254"
- }, {
- "group": "17746",
- "title": "",
- "label": "60.234.79.98",
- "AS": "17746",
- "mass": 1,
- "id": "60.234.79.98"
- }, {
- "group": "9560",
- "title": "",
- "label": "192.203.154.57",
- "AS": "9560",
- "mass": 1,
- "id": "192.203.154.57"
- }, {
- "group": "9503",
- "title": "",
- "label": "131.203.251.166",
- "AS": "9503",
- "mass": 1,
- "id": "131.203.251.166"
- }, {
- "group": "9503",
- "title": "",
- "label": "131.203.251.165",
- "AS": "9503",
- "mass": 1,
- "id": "131.203.251.165"
- }, {
- "group": "23655",
- "title": "",
- "label": "111.69.53.80",
- "AS": "23655",
- "mass": 1,
- "id": "111.69.53.80"
- }, {
- "group": "9439",
- "title": "",
- "label": "202.7.1.240",
- "AS": "9439",
- "mass": 1,
- "id": "202.7.1.240"
- }, {
- "group": "24398",
- "title": "",
- "label": "Private 11947-3",
- "AS": "24398",
- "mass": 1,
- "id": "Private 11947-3"
- }, {
- "group": "24398",
- "title": "",
- "label": "Private 11947-2",
- "AS": "24398",
- "mass": 1,
- "id": "Private 11947-2"
- }, {
- "group": "37979",
- "title": "",
- "label": "218.185.224.65",
- "AS": "37979",
- "mass": 1,
- "id": "218.185.224.65"
- }, {
- "group": "4771",
- "title": "",
- "label": "Probe 17594",
- "AS": "4771",
- "mass": 1,
- "id": "Probe 17594"
- }, {
- "group": "9503",
- "title": "",
- "label": "131.203.240.49",
- "AS": "9503",
- "mass": 1,
- "id": "131.203.240.49"
- }, {
- "group": "9503",
- "title": "",
- "label": "Hop 14884-7",
- "AS": "9503",
- "mass": 1,
- "id": "Hop 14884-7"
- }, {
- "group": "9560",
- "title": "",
- "label": "192.203.154.67",
- "AS": "9560",
- "mass": 1,
- "id": "192.203.154.67"
- }, {
- "group": "38022",
- "title": "",
- "label": "210.7.32.2",
- "AS": "38022",
- "mass": 1,
- "id": "210.7.32.2"
- }, {
- "group": "132125",
- "title": "",
- "label": "Probe 10269",
- "AS": "132125",
- "mass": 1,
- "id": "Probe 10269"
- }, {
- "group": "7657",
- "title": "",
- "label": "Private 10269-7",
- "AS": "7657",
- "mass": 1,
- "id": "Private 10269-7"
- }, {
- "group": "17746",
- "title": "",
- "label": "Private 14473-1",
- "AS": "17746",
- "mass": 1,
- "id": "Private 14473-1"
- }, {
- "group": "24398",
- "title": "",
- "label": "156.62.42.1",
- "AS": "24398",
- "mass": 1,
- "id": "156.62.42.1"
- }, {
- "group": "23655",
- "title": "",
- "label": "Private 14884-1",
- "AS": "23655",
- "mass": 1,
- "id": "Private 14884-1"
- }, {
- "group": "24398",
- "title": "",
- "label": "156.62.1.251",
- "AS": "24398",
- "mass": 1,
- "id": "156.62.1.251"
- }, {
- "group": "45177",
- "title": "",
- "label": "Probe 3088",
- "AS": "45177",
- "mass": 1,
- "id": "Probe 3088"
- }, {
- "group": "56030",
- "title": "",
- "label": "114.23.0.190",
- "AS": "56030",
- "mass": 1,
- "id": "114.23.0.190"
- }, {
- "group": "4768",
- "title": "",
- "label": "203.98.18.65",
- "AS": "4768",
- "mass": 1,
- "id": "203.98.18.65"
- }, {
- "group": "132125",
- "title": "",
- "label": "103.247.72.242",
- "AS": "132125",
- "mass": 1,
- "id": "103.247.72.242"
- }, {
- "group": "38906",
- "title": "",
- "label": "202.49.5.93",
- "AS": "38906",
- "mass": 1,
- "id": "202.49.5.93"
- }, {
- "group": "9431",
- "title": "",
- "label": "130.216.95.121",
- "AS": "9431",
- "mass": 1,
- "id": "130.216.95.121"
- }, {
- "group": "4771",
- "title": "",
- "label": "Probe 4778",
- "AS": "4771",
- "mass": 1,
- "id": "Probe 4778"
- }, {
- "group": "9245",
- "title": "",
- "label": "203.152.107.253",
- "AS": "9245",
- "mass": 1,
- "id": "203.152.107.253"
- }, {
- "group": "132003",
- "title": "",
- "label": "Probe 1050",
- "AS": "132003",
- "mass": 1,
- "id": "Probe 1050"
- }, {
- "group": "24398",
- "title": "",
- "label": "Probe 12036",
- "AS": "24398",
- "mass": 1,
- "id": "Probe 12036"
- }, {
- "group": "4768",
- "title": "",
- "label": "218.101.61.124",
- "AS": "4768",
- "mass": 1,
- "id": "218.101.61.124"
- }, {
- "group": "9889",
- "title": "",
- "label": "123.100.127.146",
- "AS": "9889",
- "mass": 1,
- "id": "123.100.127.146"
- }, {
- "group": "17746",
- "title": "",
- "label": "Private 19326-1",
- "AS": "17746",
- "mass": 1,
- "id": "Private 19326-1"
- }, {
- "group": "7657",
- "title": "",
- "label": "203.109.180.225",
- "AS": "7657",
- "mass": 1,
- "id": "203.109.180.225"
- }, {
- "group": "4770",
- "title": "",
- "label": "210.48.34.61",
- "AS": "4770",
- "mass": 1,
- "id": "210.48.34.61"
- }, {
- "group": "7657",
- "title": "",
- "label": "203.109.180.226",
- "AS": "7657",
- "mass": 1,
- "id": "203.109.180.226"
- }, {
- "group": "9439",
- "title": "",
- "label": "202.7.1.1",
- "AS": "9439",
- "mass": 1,
- "id": "202.7.1.1"
- }, {
- "group": "4768",
- "title": "",
- "label": "Probe 10650",
- "AS": "4768",
- "mass": 1,
- "id": "Probe 10650"
- }, {
- "group": "17746",
- "title": "",
- "label": "121.98.9.141",
- "AS": "17746",
- "mass": 1,
- "id": "121.98.9.141"
- }, {
- "group": "38022",
- "title": "",
- "label": "210.7.39.58",
- "AS": "38022",
- "mass": 1,
- "id": "210.7.39.58"
- }, {
- "group": "9303",
- "title": "",
- "label": "202.27.202.198",
- "AS": "9303",
- "mass": 1,
- "id": "202.27.202.198"
- }, {
- "group": "17746",
- "title": "",
- "label": "121.98.9.10",
- "AS": "17746",
- "mass": 1,
- "id": "121.98.9.10"
- }, {
- "group": "38022",
- "title": "",
- "label": "210.7.39.57",
- "AS": "38022",
- "mass": 1,
- "id": "210.7.39.57"
- }, {
- "group": "24398",
- "title": "",
- "label": "Private 12793-3",
- "AS": "24398",
- "mass": 1,
- "id": "Private 12793-3"
- }, {
- "group": "24398",
- "title": "",
- "label": "Private 12793-2",
- "AS": "24398",
- "mass": 1,
- "id": "Private 12793-2"
- }, {
- "group": "4771",
- "title": "",
- "label": "Hop 17594-3",
- "AS": "4771",
- "mass": 1,
- "id": "Hop 17594-3"
- }, {
- "group": "38022",
- "title": "",
- "label": "210.7.39.113",
- "AS": "38022",
- "mass": 1,
- "id": "210.7.39.113"
- }, {
- "group": "9503",
- "title": "",
- "label": "131.203.237.142",
- "AS": "9503",
- "mass": 1,
- "id": "131.203.237.142"
- }, {
- "group": "18015",
- "title": "",
- "label": "180.189.223.94",
- "AS": "18015",
- "mass": 1,
- "id": "180.189.223.94"
- }, {
- "group": "9889",
- "title": "",
- "label": "124.198.198.16",
- "AS": "9889",
- "mass": 1,
- "id": "124.198.198.16"
- }, {
- "group": "24398",
- "title": "",
- "label": "156.62.42.23",
- "AS": "24398",
- "mass": 1,
- "id": "156.62.42.23"
- }, {
- "group": "4648",
- "title": "",
- "label": "122.56.116.9",
- "AS": "4648",
- "mass": 1,
- "id": "122.56.116.9"
- }, {
- "group": "4768",
- "title": "",
- "label": "Hop 10650-2",
- "AS": "4768",
- "mass": 1,
- "id": "Hop 10650-2"
- }, {
- "group": "4768",
- "title": "",
- "label": "203.167.219.122",
- "AS": "4768",
- "mass": 1,
- "id": "203.167.219.122"
- }, {
- "group": "24398",
- "title": "",
- "label": "Hop 12197-9",
- "AS": "24398",
- "mass": 1,
- "id": "Hop 12197-9"
- }, {
- "group": "24398",
- "title": "",
- "label": "Hop 12197-8",
- "AS": "24398",
- "mass": 1,
- "id": "Hop 12197-8"
- }, {
- "group": "4768",
- "title": "",
- "label": "Hop 11744-2",
- "AS": "4768",
- "mass": 1,
- "id": "Hop 11744-2"
- }, {
- "group": "4771",
- "title": "",
- "label": "Hop 4778-3",
- "AS": "4771",
- "mass": 1,
- "id": "Hop 4778-3"
- }, {
- "group": "4648",
- "title": "",
- "label": "122.56.118.166",
- "AS": "4648",
- "mass": 1,
- "id": "122.56.118.166"
- }, {
- "group": "9503",
- "title": "",
- "label": "Hop 4778-9",
- "AS": "9503",
- "mass": 1,
- "id": "Hop 4778-9"
- }, {
- "group": "17746",
- "title": "",
- "label": "60.234.20.42",
- "AS": "17746",
- "mass": 1,
- "id": "60.234.20.42"
- }, {
- "group": "4771",
- "title": "",
- "label": "Private 17594-1",
- "AS": "4771",
- "mass": 1,
- "id": "Private 17594-1"
- }, {
- "group": "4771",
- "title": "",
- "label": "Hop 17594-2",
- "AS": "4771",
- "mass": 1,
- "id": "Hop 17594-2"
- }, {
- "group": "9503",
- "title": "",
- "label": "131.203.240.206",
- "AS": "9503",
- "mass": 1,
- "id": "131.203.240.206"
- }, {
- "group": "56030",
- "title": "",
- "label": "114.23.3.149",
- "AS": "56030",
- "mass": 1,
- "id": "114.23.3.149"
- }, {
- "group": "4648",
- "title": "",
- "label": "122.56.223.9",
- "AS": "4648",
- "mass": 1,
- "id": "122.56.223.9"
- }, {
- "group": "4648",
- "title": "",
- "label": "122.56.223.8",
- "AS": "4648",
- "mass": 1,
- "id": "122.56.223.8"
- }, {
- "group": "9790",
- "title": "",
- "label": "101.98.2.226",
- "AS": "9790",
- "mass": 1,
- "id": "101.98.2.226"
- }, {
- "group": "24398",
- "title": "",
- "label": "156.62.209.1",
- "AS": "24398",
- "mass": 1,
- "id": "156.62.209.1"
- }, {
- "group": "9790",
- "title": "",
- "label": "101.98.2.229",
- "AS": "9790",
- "mass": 1,
- "id": "101.98.2.229"
- }, {
- "group": "7657",
- "title": "",
- "label": "Hop 10269-6",
- "AS": "7657",
- "mass": 1,
- "id": "Hop 10269-6"
- }, {
- "group": "7657",
- "title": "",
- "label": "210.246.43.111",
- "AS": "7657",
- "mass": 1,
- "id": "210.246.43.111"
- }, {
- "group": "17746",
- "title": "",
- "label": "121.98.9.161",
- "AS": "17746",
- "mass": 1,
- "id": "121.98.9.161"
- }, {
- "group": "4771",
- "title": "",
- "label": "Private 74-1",
- "AS": "4771",
- "mass": 1,
- "id": "Private 74-1"
- }, {
- "group": "4771",
- "title": "",
- "label": "Private 74-2",
- "AS": "4771",
- "mass": 1,
- "id": "Private 74-2"
- }, {
- "group": "38022",
- "title": "",
- "label": "210.7.39.74",
- "AS": "38022",
- "mass": 1,
- "id": "210.7.39.74"
- }, {
- "group": "24398",
- "title": "",
- "label": "156.62.209.200",
- "AS": "24398",
- "mass": 1,
- "id": "156.62.209.200"
- }, {
- "group": "9560",
- "title": "",
- "label": "192.203.154.110",
- "AS": "9560",
- "mass": 1,
- "id": "192.203.154.110"
- }, {
- "group": "9439",
- "title": "",
- "label": "202.7.0.190",
- "AS": "9439",
- "mass": 1,
- "id": "202.7.0.190"
- }, {
- "group": "9503",
- "title": "",
- "label": "131.203.225.46",
- "AS": "9503",
- "mass": 1,
- "id": "131.203.225.46"
- }, {
- "group": "4768",
- "title": "",
- "label": "Private 11744-1",
- "AS": "4768",
- "mass": 1,
- "id": "Private 11744-1"
- }, {
- "group": "9503",
- "title": "",
- "label": "131.203.243.57",
- "AS": "9503",
- "mass": 1,
- "id": "131.203.243.57"
- }, {
- "group": "9503",
- "title": "",
- "label": "131.203.243.58",
- "AS": "9503",
- "mass": 1,
- "id": "131.203.243.58"
- }, {
- "group": "17746",
- "title": "",
- "label": "121.98.9.72",
- "AS": "17746",
- "mass": 1,
- "id": "121.98.9.72"
- }, {
- "group": "9433",
- "title": "",
- "label": "130.123.10.101",
- "AS": "9433",
- "mass": 1,
- "id": "130.123.10.101"
- }, {
- "group": "23838",
- "title": "",
- "label": "120.136.54.220",
- "AS": "23838",
- "mass": 1,
- "id": "120.136.54.220"
- }, {
- "group": "4771",
- "title": "",
- "label": "222.152.45.9",
- "AS": "4771",
- "mass": 1,
- "id": "222.152.45.9"
- }, {
- "group": "4771",
- "title": "",
- "label": "Hop 74-3",
- "AS": "4771",
- "mass": 1,
- "id": "Hop 74-3"
- }, {
- "group": "56030",
- "title": "",
- "label": "114.23.3.250",
- "AS": "56030",
- "mass": 1,
- "id": "114.23.3.250"
- }, {
- "group": "4771",
- "title": "",
- "label": "Hop 74-4",
- "AS": "4771",
- "mass": 1,
- "id": "Hop 74-4"
- }, {
- "group": "38022",
- "title": "",
- "label": "210.7.39.173",
- "AS": "38022",
- "mass": 1,
- "id": "210.7.39.173"
- }, {
- "group": "7657",
- "title": "",
- "label": "Hop 74-9",
- "AS": "7657",
- "mass": 1,
- "id": "Hop 74-9"
- }, {
- "group": "4770",
- "title": "",
- "label": "210.48.34.51",
- "AS": "4770",
- "mass": 1,
- "id": "210.48.34.51"
- }, {
- "group": "23655",
- "title": "",
- "label": "111.69.15.8",
- "AS": "23655",
- "mass": 1,
- "id": "111.69.15.8"
- }, {
- "group": "45177",
- "title": "",
- "label": "Private 3088-1",
- "AS": "45177",
- "mass": 1,
- "id": "Private 3088-1"
- }, {
- "group": "4768",
- "title": "",
- "label": "203.98.18.66",
- "AS": "4768",
- "mass": 1,
- "id": "203.98.18.66"
- }, {
- "group": "9503",
- "title": "",
- "label": "131.203.249.185",
- "AS": "9503",
- "mass": 1,
- "id": "131.203.249.185"
- }, {
- "group": "24398",
- "title": "",
- "label": "Private 3088-9",
- "AS": "24398",
- "mass": 1,
- "id": "Private 3088-9"
- }, {
- "group": "24398",
- "title": "",
- "label": "Private 3088-8",
- "AS": "24398",
- "mass": 1,
- "id": "Private 3088-8"
- }, {
- "group": "4768",
- "title": "",
- "label": "203.167.219.121",
- "AS": "4768",
- "mass": 1,
- "id": "203.167.219.121"
- }, {
- "group": "23655",
- "title": "",
- "label": "111.69.15.7",
- "AS": "23655",
- "mass": 1,
- "id": "111.69.15.7"
- }, {
- "group": "132003",
- "title": "",
- "label": "103.10.233.81",
- "AS": "132003",
- "mass": 1,
- "id": "103.10.233.81"
- }, {
- "group": "23655",
- "title": "",
- "label": "Probe 14884",
- "AS": "23655",
- "mass": 1,
- "id": "Probe 14884"
- }, {
- "group": "132003",
- "title": "",
- "label": "103.10.233.83",
- "AS": "132003",
- "mass": 1,
- "id": "103.10.233.83"
- }, {
- "group": "9433",
- "title": "",
- "label": "Hop 4778-12",
- "AS": "9433",
- "mass": 1,
- "id": "Hop 4778-12"
- }, {
- "group": "9503",
- "title": "",
- "label": "Hop 4778-10",
- "AS": "9503",
- "mass": 1,
- "id": "Hop 4778-10"
- }, {
- "group": "9433",
- "title": "",
- "label": "Hop 4778-11",
- "AS": "9433",
- "mass": 1,
- "id": "Hop 4778-11"
- }, {
- "group": "132268",
- "title": "",
- "label": "103.9.106.19",
- "AS": "132268",
- "mass": 1,
- "id": "103.9.106.19"
- }, {
- "group": "45164",
- "title": "",
- "label": "202.36.163.2",
- "AS": "45164",
- "mass": 1,
- "id": "202.36.163.2"
- }, {
- "group": "38022",
- "title": "",
- "label": "210.7.32.24",
- "AS": "38022",
- "mass": 1,
- "id": "210.7.32.24"
- }, {
- "group": "24398",
- "title": "",
- "label": "156.62.3.2",
- "AS": "24398",
- "mass": 1,
- "id": "156.62.3.2"
- }, {
- "group": "9431",
- "title": "",
- "label": "Private 12197-2",
- "AS": "9431",
- "mass": 1,
- "id": "Private 12197-2"
- }, {
- "group": "24398",
- "title": "",
- "label": "Probe 11947",
- "AS": "24398",
- "mass": 1,
- "id": "Probe 11947"
- }, {
- "group": "17746",
- "title": "",
- "label": "Probe 14473",
- "AS": "17746",
- "mass": 1,
- "id": "Probe 14473"
- }, {
- "group": "9303",
- "title": "",
- "label": "202.27.219.98",
- "AS": "9303",
- "mass": 1,
- "id": "202.27.219.98"
- }, {
- "group": "4768",
- "title": "",
- "label": "Probe 11744",
- "AS": "4768",
- "mass": 1,
- "id": "Probe 11744"
- }, {
- "group": "23655",
- "title": "",
- "label": "202.124.114.162",
- "AS": "23655",
- "mass": 1,
- "id": "202.124.114.162"
- }, {
- "group": "23655",
- "title": "",
- "label": "202.124.114.161",
- "AS": "23655",
- "mass": 1,
- "id": "202.124.114.161"
- }, {
- "group": "9790",
- "title": "",
- "label": "101.98.3.41",
- "AS": "9790",
- "mass": 1,
- "id": "101.98.3.41"
- }, {
- "group": "132881",
- "title": "",
- "label": "103.27.52.8",
- "AS": "132881",
- "mass": 1,
- "id": "103.27.52.8"
- }, {
- "group": "9790",
- "title": "",
- "label": "101.98.3.164",
- "AS": "9790",
- "mass": 1,
- "id": "101.98.3.164"
- }, {
- "group": "9790",
- "title": "",
- "label": "101.98.3.162",
- "AS": "9790",
- "mass": 1,
- "id": "101.98.3.162"
- }, {
- "group": "17746",
- "title": "",
- "label": "60.234.8.4",
- "AS": "17746",
- "mass": 1,
- "id": "60.234.8.4"
- }, {
- "group": "24398",
- "title": "",
- "label": "156.62.3.252",
- "AS": "24398",
- "mass": 1,
- "id": "156.62.3.252"
- }, {
- "group": "9245",
- "title": "",
- "label": "203.152.107.13",
- "AS": "9245",
- "mass": 1,
- "id": "203.152.107.13"
- }, {
- "group": "9433",
- "title": "",
- "label": "130.123.1.130",
- "AS": "9433",
- "mass": 1,
- "id": "130.123.1.130"
- }, {
- "group": "4771",
- "title": "",
- "label": "Private 4778-1",
- "AS": "4771",
- "mass": 1,
- "id": "Private 4778-1"
- }, {
- "group": "38906",
- "title": "",
- "label": "202.49.0.2",
- "AS": "38906",
- "mass": 1,
- "id": "202.49.0.2"
- }, {
- "group": "9433",
- "title": "",
- "label": "130.123.3.180",
- "AS": "9433",
- "mass": 1,
- "id": "130.123.3.180"
- }, {
- "group": "4771",
- "title": "",
- "label": "Probe 74",
- "AS": "4771",
- "mass": 1,
- "id": "Probe 74"
- }, {
- "group": "7657",
- "title": "",
- "label": "203.109.130.98",
- "AS": "7657",
- "mass": 1,
- "id": "203.109.130.98"
- }, {
- "group": "24398",
- "title": "",
- "label": "Probe 12793",
- "AS": "24398",
- "mass": 1,
- "id": "Probe 12793"
- }, {
- "group": "17746",
- "title": "",
- "label": "121.99.252.1",
- "AS": "17746",
- "mass": 1,
- "id": "121.99.252.1"
- }, {
- "group": "45177",
- "title": "",
- "label": "120.136.0.248",
- "AS": "45177",
- "mass": 1,
- "id": "120.136.0.248"
- }, {
- "group": "9790",
- "title": "",
- "label": "101.98.3.112",
- "AS": "9790",
- "mass": 1,
- "id": "101.98.3.112"
- }, {
- "group": "9560",
- "title": "",
- "label": "192.203.154.46",
- "AS": "9560",
- "mass": 1,
- "id": "192.203.154.46"
- }, {
- "group": "24398",
- "title": "",
- "label": "Hop 12197-10",
- "AS": "24398",
- "mass": 1,
- "id": "Hop 12197-10"
- }];
- var edges = [{
- "to": "180.189.223.94",
- "from": "180.189.223.1"
- }, {
- "to": "192.203.154.142",
- "from": "180.189.223.1"
- }, {
- "to": "122.56.116.9",
- "from": "111.69.27.36"
- }, {
- "to": "114.23.0.244",
- "from": "111.69.27.36"
- }, {
- "to": "203.98.18.66",
- "from": "111.69.27.36"
- }, {
- "to": "111.69.53.81",
- "from": "123.255.40.191"
- }, {
- "to": "124.198.198.16",
- "from": "192.203.154.145"
- }, {
- "to": "203.109.180.226",
- "from": "192.203.154.145"
- }, {
- "to": "121.98.9.10",
- "from": "192.203.154.142"
- }, {
- "to": "Probe 17565",
- "from": "Private 17565-1"
- }, {
- "to": "218.185.224.65",
- "from": "Private 17565-1"
- }, {
- "to": "Probe 10650",
- "from": "Private 10650-1"
- }, {
- "to": "Hop 10650-2",
- "from": "Private 10650-1"
- }, {
- "to": "130.216.95.121",
- "from": "130.216.95.105"
- }, {
- "to": "210.7.39.173",
- "from": "130.216.95.105"
- }, {
- "to": "Private 19326-1",
- "from": "Probe 19326"
- }, {
- "to": "Private 12793-3",
- "from": "156.62.1.7"
- }, {
- "to": "156.62.3.252",
- "from": "156.62.1.7"
- }, {
- "to": "Private 11947-3",
- "from": "156.62.1.7"
- }, {
- "to": "Private 11843-3",
- "from": "156.62.1.7"
- }, {
- "to": "156.62.42.1",
- "from": "Private 11843-2"
- }, {
- "to": "Private 11843-3",
- "from": "Private 11843-2"
- }, {
- "to": "156.62.42.1",
- "from": "Probe 11843"
- }, {
- "to": "203.98.18.65",
- "from": "218.101.61.101"
- }, {
- "to": "Hop 11744-2",
- "from": "218.101.61.101"
- }, {
- "to": "125.236.173.140",
- "from": "125.236.168.1"
- }, {
- "to": "122.56.223.8",
- "from": "125.236.168.1"
- }, {
- "to": "111.69.53.80",
- "from": "111.69.53.81"
- }, {
- "to": "156.62.3.252",
- "from": "192.203.154.78"
- }, {
- "to": "202.27.202.198",
- "from": "192.203.154.78"
- }, {
- "to": "131.203.237.142",
- "from": "202.53.187.94"
- }, {
- "to": "202.53.187.33",
- "from": "202.53.187.94"
- }, {
- "to": "114.23.0.190",
- "from": "114.23.0.244"
- }, {
- "to": "114.23.3.149",
- "from": "202.90.44.12"
- }, {
- "to": "120.136.0.248",
- "from": "120.136.0.131"
- }, {
- "to": "192.203.154.67",
- "from": "120.136.0.131"
- }, {
- "to": "130.216.38.254",
- "from": "Probe 12197"
- }, {
- "to": "122.56.118.166",
- "from": "202.53.187.33"
- }, {
- "to": "Private 12197-2",
- "from": "130.216.38.254"
- }, {
- "to": "111.69.53.80",
- "from": "60.234.79.98"
- }, {
- "to": "121.98.9.161",
- "from": "60.234.79.98"
- }, {
- "to": "192.203.154.46",
- "from": "192.203.154.57"
- }, {
- "to": "210.7.39.113",
- "from": "192.203.154.57"
- }, {
- "to": "131.203.251.165",
- "from": "131.203.251.166"
- }, {
- "to": "202.49.0.2",
- "from": "131.203.251.166"
- }, {
- "to": "131.203.249.185",
- "from": "131.203.251.165"
- }, {
- "to": "202.124.114.161",
- "from": "202.7.1.240"
- }, {
- "to": "210.7.32.2",
- "from": "202.7.1.240"
- }, {
- "to": "Private 11947-2",
- "from": "Private 11947-3"
- }, {
- "to": "156.62.209.1",
- "from": "Private 11947-2"
- }, {
- "to": "131.203.249.185",
- "from": "218.185.224.65"
- }, {
- "to": "Private 17594-1",
- "from": "Probe 17594"
- }, {
- "to": "210.7.39.113",
- "from": "131.203.240.49"
- }, {
- "to": "122.56.223.9",
- "from": "131.203.240.49"
- }, {
- "to": "120.136.54.220",
- "from": "Hop 14884-7"
- }, {
- "to": "131.203.225.46",
- "from": "Hop 14884-7"
- }, {
- "to": "60.234.20.42",
- "from": "192.203.154.67"
- }, {
- "to": "202.7.1.1",
- "from": "210.7.32.2"
- }, {
- "to": "156.62.3.252",
- "from": "210.7.32.2"
- }, {
- "to": "103.247.72.242",
- "from": "Probe 10269"
- }, {
- "to": "Hop 10269-6",
- "from": "Private 10269-7"
- }, {
- "to": "121.99.252.1",
- "from": "Private 14473-1"
- }, {
- "to": "Probe 14473",
- "from": "Private 14473-1"
- }, {
- "to": "Private 12793-2",
- "from": "156.62.42.1"
- }, {
- "to": "Probe 12793",
- "from": "156.62.42.1"
- }, {
- "to": "Probe 14884",
- "from": "Private 14884-1"
- }, {
- "to": "111.69.15.7",
- "from": "Private 14884-1"
- }, {
- "to": "Private 3088-8",
- "from": "156.62.1.251"
- }, {
- "to": "156.62.3.2",
- "from": "156.62.1.251"
- }, {
- "to": "Private 3088-1",
- "from": "Probe 3088"
- }, {
- "to": "114.23.3.250",
- "from": "114.23.0.190"
- }, {
- "to": "203.98.18.66",
- "from": "203.98.18.65"
- }, {
- "to": "123.100.127.146",
- "from": "103.247.72.242"
- }, {
- "to": "202.49.0.2",
- "from": "202.49.5.93"
- }, {
- "to": "Private 12197-2",
- "from": "130.216.95.121"
- }, {
- "to": "Private 4778-1",
- "from": "Probe 4778"
- }, {
- "to": "192.203.154.110",
- "from": "203.152.107.253"
- }, {
- "to": "203.152.107.13",
- "from": "203.152.107.253"
- }, {
- "to": "103.10.233.81",
- "from": "Probe 1050"
- }, {
- "to": "156.62.3.252",
- "from": "Probe 12036"
- }, {
- "to": "203.167.219.121",
- "from": "218.101.61.124"
- }, {
- "to": "Hop 10650-2",
- "from": "218.101.61.124"
- }, {
- "to": "124.198.198.16",
- "from": "123.100.127.146"
- }, {
- "to": "60.234.8.4",
- "from": "Private 19326-1"
- }, {
- "to": "203.109.130.98",
- "from": "203.109.180.225"
- }, {
- "to": "203.109.180.226",
- "from": "203.109.180.225"
- }, {
- "to": "210.48.34.51",
- "from": "210.48.34.61"
- }, {
- "to": "103.27.52.8",
- "from": "210.48.34.61"
- }, {
- "to": "Hop 74-9",
- "from": "203.109.180.226"
- }, {
- "to": "Hop 10269-6",
- "from": "203.109.180.226"
- }, {
- "to": "210.48.34.51",
- "from": "202.7.1.1"
- }, {
- "to": "121.99.252.1",
- "from": "121.98.9.141"
- }, {
- "to": "121.98.9.10",
- "from": "121.98.9.141"
- }, {
- "to": "130.123.1.130",
- "from": "210.7.39.58"
- }, {
- "to": "210.7.39.57",
- "from": "210.7.39.58"
- }, {
- "to": "202.27.219.98",
- "from": "202.27.202.198"
- }, {
- "to": "131.203.240.206",
- "from": "210.7.39.57"
- }, {
- "to": "Private 12793-2",
- "from": "Private 12793-3"
- }, {
- "to": "122.56.116.9",
- "from": "Hop 17594-3"
- }, {
- "to": "Hop 17594-2",
- "from": "Hop 17594-3"
- }, {
- "to": "103.10.233.81",
- "from": "210.7.39.113"
- }, {
- "to": "Hop 4778-9",
- "from": "131.203.237.142"
- }, {
- "to": "192.203.154.110",
- "from": "124.198.198.16"
- }, {
- "to": "Private 3088-9",
- "from": "156.62.42.23"
- }, {
- "to": "Hop 74-4",
- "from": "122.56.116.9"
- }, {
- "to": "203.109.130.98",
- "from": "122.56.116.9"
- }, {
- "to": "Hop 4778-3",
- "from": "122.56.116.9"
- }, {
- "to": "122.56.118.166",
- "from": "122.56.116.9"
- }, {
- "to": "203.167.219.121",
- "from": "203.167.219.122"
- }, {
- "to": "Hop 12197-8",
- "from": "Hop 12197-9"
- }, {
- "to": "Hop 12197-10",
- "from": "Hop 12197-9"
- }, {
- "to": "156.62.3.2",
- "from": "Hop 12197-8"
- }, {
- "to": "Private 11744-1",
- "from": "Hop 11744-2"
- }, {
- "to": "222.152.45.9",
- "from": "Hop 4778-3"
- }, {
- "to": "131.203.240.206",
- "from": "122.56.118.166"
- }, {
- "to": "Hop 4778-10",
- "from": "Hop 4778-9"
- }, {
- "to": "156.62.3.2",
- "from": "60.234.20.42"
- }, {
- "to": "Hop 17594-2",
- "from": "Private 17594-1"
- }, {
- "to": "114.23.3.250",
- "from": "114.23.3.149"
- }, {
- "to": "122.56.223.8",
- "from": "122.56.223.9"
- }, {
- "to": "101.98.3.41",
- "from": "101.98.2.226"
- }, {
- "to": "Probe 11947",
- "from": "156.62.209.1"
- }, {
- "to": "101.98.3.164",
- "from": "101.98.2.229"
- }, {
- "to": "101.98.3.112",
- "from": "101.98.2.229"
- }, {
- "to": "Hop 74-9",
- "from": "210.246.43.111"
- }, {
- "to": "121.98.9.72",
- "from": "121.98.9.161"
- }, {
- "to": "Private 74-2",
- "from": "Private 74-1"
- }, {
- "to": "Probe 74",
- "from": "Private 74-1"
- }, {
- "to": "Hop 74-3",
- "from": "Private 74-2"
- }, {
- "to": "156.62.3.2",
- "from": "210.7.39.74"
- }, {
- "to": "210.7.39.173",
- "from": "210.7.39.74"
- }, {
- "to": "Hop 12197-10",
- "from": "156.62.209.200"
- }, {
- "to": "103.10.233.83",
- "from": "202.7.0.190"
- }, {
- "to": "210.7.32.24",
- "from": "202.7.0.190"
- }, {
- "to": "131.203.243.57",
- "from": "131.203.225.46"
- }, {
- "to": "Probe 11744",
- "from": "Private 11744-1"
- }, {
- "to": "131.203.243.58",
- "from": "131.203.243.57"
- }, {
- "to": "111.69.15.8",
- "from": "131.203.243.58"
- }, {
- "to": "60.234.8.4",
- "from": "121.98.9.72"
- }, {
- "to": "Hop 4778-12",
- "from": "130.123.10.101"
- }, {
- "to": "Private 4778-1",
- "from": "222.152.45.9"
- }, {
- "to": "Hop 74-4",
- "from": "Hop 74-3"
- }, {
- "to": "111.69.15.7",
- "from": "111.69.15.8"
- }, {
- "to": "120.136.0.248",
- "from": "Private 3088-1"
- }, {
- "to": "Private 3088-8",
- "from": "Private 3088-9"
- }, {
- "to": "Hop 4778-11",
- "from": "Hop 4778-12"
- }, {
- "to": "103.9.106.19",
- "from": "Hop 4778-10"
- }, {
- "to": "130.123.3.180",
- "from": "Hop 4778-11"
- }, {
- "to": "202.124.114.162",
- "from": "202.36.163.2"
- }, {
- "to": "156.62.3.252",
- "from": "210.7.32.24"
- }, {
- "to": "202.124.114.161",
- "from": "202.124.114.162"
- }, {
- "to": "101.98.3.162",
- "from": "101.98.3.41"
- }, {
- "to": "101.98.3.162",
- "from": "101.98.3.164"
- }, {
- "to": "130.123.3.180",
- "from": "130.123.1.130"
- }, {
- "to": "192.203.154.46",
- "from": "101.98.3.112"
- }];
- var ases = ["132881", "56030", "38022", "45177", "23655", "9245", "132268", "18015", "7657", "4768", "45164", "17746", "9303", "24398", "9560", "37979", "38906", "23838", "132125", "9503", "56216", "132003", "4770", "4771", "4648", "9790", "9439", "9433", "9889", "9431"];
-
- window.clusterPlease = function () {
- for (var i = 0; i < ases.length; i++) {
- clusterByAs(ases[i]);
- }
- }
-
- var vis_nodes = new vis.DataSet(nodes);
- var vis_edges = new vis.DataSet(edges);
-
- var container = document.getElementById('mynetwork');
- var options = {
- autoResize: true,
- width: '100%',
- height: '100%',
- layout: {
- randomSeed: 8
- },
- nodes: {
- shape: 'dot',
- size: 5,
- physics: true
- },
- edges: {
- smooth: false
- },
- interaction: {
- navigationButtons: true,
- zoomView: true
- },
- physics: {
- "stabilization": true,
- "barnesHut": {
- "gravitationalConstant": -17500,
- "centralGravity": 1.7,
- "springLength": 30,
- "springConstant": 0.05,
- "damping": 0.75,
- "avoidOverlap": 0.1
- }
- }
- };
-
-
- var data = {
- nodes: vis_nodes,
- edges: vis_edges
- };
- var network = new vis.Network(container, data, options);
-
- function clusterByAs(as) { // console.log("Clustering nodes in AS " + as);
- clusterOptionsByData = {
- joinCondition: function (childOptions) {
- return childOptions.AS == as;
- },
- processProperties: function (clusterOptions, childNodes, childEdges) {
- var totalMass = 0;
- for (var i = 0; i < childNodes.length; i++) {
- totalMass += childNodes[i].mass;
- }
- clusterOptions.mass = totalMass;
- clusterOptions.value = childNodes.length;
- return clusterOptions;
- },
- clusterNodeProperties: {
- id: as,
- borderWidth: 2,
- shape: 'dot',
- label: 'AS ' + as,
- group: as
- }
- }
- network.cluster(clusterOptionsByData);
- }
-
- // if we click on a node, we want to open it up!
- network.on("selectNode", function (params) {
- if (params.nodes.length == 1) {
- if (network.isCluster(params.nodes[0]) == true) {
- network.openCluster(params.nodes[0])
- } else {
- clusterByAs(data.nodes._data[params.nodes[0]].AS);
- }
- }
- });
-
-
- </script>
-
- </body>
- </html>
|