155 lines
22 KiB
HTML
155 lines
22 KiB
HTML
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
|
|
<script src="lib/bindings/utils.js"></script>
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/vis-network/9.1.2/dist/dist/vis-network.min.css" integrity="sha512-WgxfT5LWjfszlPHXRmBWHkV2eceiWTOBvrKCNbdgDYTHrT2AeLCGbF4sZlZw3UMN3WtL0tGUoIAKsu8mllg/XA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/vis-network/9.1.2/dist/vis-network.min.js" integrity="sha512-LnvoEWDFrqGHlHmDD2101OrLcbsfkrzoSpvtSQtxK3RMnRV0eOkhhBN2dXHKRrUU8p2DGRTk35n4O8nWSVe1mQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
|
|
|
|
<center>
|
|
<h1></h1>
|
|
</center>
|
|
|
|
<!-- <link rel="stylesheet" href="../node_modules/vis/dist/vis.min.css" type="text/css" />
|
|
<script type="text/javascript" src="../node_modules/vis/dist/vis.js"> </script>-->
|
|
<link
|
|
href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css"
|
|
rel="stylesheet"
|
|
integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6"
|
|
crossorigin="anonymous"
|
|
/>
|
|
<script
|
|
src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/js/bootstrap.bundle.min.js"
|
|
integrity="sha384-JEW9xMcG8R+pH31jmWH6WWP0WintQrMb4s7ZOdauHnUtxwoG2vI5DkLtS3qm9Ekf"
|
|
crossorigin="anonymous"
|
|
></script>
|
|
|
|
|
|
<center>
|
|
<h1></h1>
|
|
</center>
|
|
<style type="text/css">
|
|
|
|
#mynetwork {
|
|
width: 100%;
|
|
height: 920px;
|
|
background-color: #FFFFFF;
|
|
border: 1px solid lightgray;
|
|
position: relative;
|
|
float: left;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</style>
|
|
</head>
|
|
|
|
|
|
<body>
|
|
<div class="card" style="width: 100%">
|
|
|
|
|
|
<div id="mynetwork" class="card-body"></div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
// initialize global variables.
|
|
var edges;
|
|
var nodes;
|
|
var allNodes;
|
|
var allEdges;
|
|
var nodeColors;
|
|
var originalNodes;
|
|
var network;
|
|
var container;
|
|
var options, data;
|
|
var filter = {
|
|
item : '',
|
|
property : '',
|
|
value : []
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// This method is responsible for drawing the graph, returns the drawn network
|
|
function drawGraph() {
|
|
var container = document.getElementById('mynetwork');
|
|
|
|
|
|
|
|
// parsing and collecting nodes and edges from the python
|
|
nodes = new vis.DataSet([{"borderWidth": 2, "color": {"background": "#3B3E54", "border": "#2C2E3E"}, "fixed": true, "font": {"color": "#1A252F"}, "id": "umela_inteligencia", "label": " Umel\u00e1 inteligencia ", "margin": 14, "shape": "box", "shapeProperties": {"borderRadius": 16}, "size": 10, "title": "Umel\u00e1 inteligencia\n\u00darove\u0148: 0 | Kateg\u00f3ria: hlavna_tema\n----------------------------------------\nZastre\u0161uj\u00faca discipl\u00edna a technol\u00f3gia\nzameran\u00e1 na tvorbu inteligentn\u00fdch strojov.", "x": 0.0, "y": 0.0}, {"borderWidth": 2.5, "color": {"background": "#FFFFFF", "border": "#E056FD"}, "fixed": true, "font": {"color": "#1A252F"}, "id": "terminologia_a_koncepty", "label": " Terminol\u00f3gia a koncepty ", "margin": 10, "shape": "box", "shapeProperties": {"borderRadius": 12}, "size": 10, "title": "Terminol\u00f3gia a koncepty\n\u00darove\u0148: 1 | Kateg\u00f3ria: koncept\n----------------------------------------\nZ\u00e1kladn\u00e9 teoretick\u00e9 vymedzenie pojmov a\nteoretick\u00fd r\u00e1mec umelej inteligencie.", "x": 340.0, "y": -307.5}, {"borderWidth": 2.5, "color": {"background": "#FFFFFF", "border": "#3498DB"}, "fixed": true, "font": {"color": "#1A252F"}, "id": "klasifikacia_ai", "label": " Klasifik\u00e1cia AI ", "margin": 10, "shape": "box", "shapeProperties": {"borderRadius": 12}, "size": 10, "title": "Klasifik\u00e1cia AI\n\u00darove\u0148: 1 | Kateg\u00f3ria: koncept\n----------------------------------------\nKategoriz\u00e1cia syst\u00e9mov umelej inteligencie\npod\u013ea r\u00f4znych krit\u00e9ri\u00ed.", "x": 340.0, "y": -37.5}, {"borderWidth": 2.5, "color": {"background": "#FFFFFF", "border": "#2ECC71"}, "fixed": true, "font": {"color": "#1A252F"}, "id": "prostriedky_a_metody", "label": " Prostriedky a met\u00f3dy ", "margin": 10, "shape": "box", "shapeProperties": {"borderRadius": 12}, "size": 10, "title": "Prostriedky a met\u00f3dy\n\u00darove\u0148: 1 | Kateg\u00f3ria: metoda\n----------------------------------------\nAlgoritmick\u00e9 a architektonick\u00e9 n\u00e1stroje\npou\u017e\u00edvan\u00e9 na rozvoj inteligencie.", "x": 340.0, "y": 270.0}, {"borderWidth": 2.5, "color": {"background": "#FFFFFF", "border": "#E67E22"}, "fixed": true, "font": {"color": "#1A252F"}, "id": "vyzvy_a_problemy", "label": " V\u00fdzvy a probl\u00e9my ", "margin": 10, "shape": "box", "shapeProperties": {"borderRadius": 12}, "size": 10, "title": "V\u00fdzvy a probl\u00e9my\n\u00darove\u0148: 1 | Kateg\u00f3ria: vyzva\n----------------------------------------\nKritick\u00e9 prek\u00e1\u017eky, etick\u00e9 dilemy a\nbezpe\u010dnostn\u00e9 rizik\u00e1 spojen\u00e9 s AI.", "x": -340.0, "y": -172.5}, {"borderWidth": 2.5, "color": {"background": "#FFFFFF", "border": "#E74C3C"}, "fixed": true, "font": {"color": "#1A252F"}, "id": "buducnost_a_singularita", "label": " Bud\u00facnos\u0165 a singularita ", "margin": 10, "shape": "box", "shapeProperties": {"borderRadius": 12}, "size": 10, "title": "Bud\u00facnos\u0165 a singularita\n\u00darove\u0148: 1 | Kateg\u00f3ria: koncept\n----------------------------------------\nO\u010dak\u00e1van\u00fd v\u00fdvoj, pokro\u010dil\u00e9 auton\u00f3mne koncepty\na hypotetick\u00e9 medzn\u00edky.", "x": -340.0, "y": 172.5}, {"color": "#97c2fc", "fixed": true, "font": {"color": "#1A252F"}, "id": "ludska_inteligencia", "label": "\u013dudsk\u00e1 inteligencia", "shape": "text", "size": 10, "title": "\u013dudsk\u00e1 inteligencia\n\u00darove\u0148: 2 | Kateg\u00f3ria: koncept\n----------------------------------------\nBiologick\u00e1 schopnos\u0165 uva\u017eova\u0165 a u\u010di\u0165 sa,\nktor\u00e1 sl\u00fa\u017ei ako predloha pre AI.", "x": 660.0, "y": -382.5}, {"color": "#97c2fc", "fixed": true, "font": {"color": "#1A252F"}, "id": "vedna_disciplina", "label": "Vedn\u00e1 discipl\u00edna", "shape": "text", "size": 10, "title": "Vedn\u00e1 discipl\u00edna\n\u00darove\u0148: 2 | Kateg\u00f3ria: koncept\n----------------------------------------\nAkademick\u00fd obor zaoberaj\u00faci sa teoretick\u00fdm a\npraktick\u00fdm v\u00fdskumom inteligentn\u00fdch syst\u00e9mov.", "x": 660.0, "y": -307.5}, {"color": "#97c2fc", "fixed": true, "font": {"color": "#1A252F"}, "id": "dejiny_ai", "label": "Dejiny AI", "shape": "text", "size": 10, "title": "Dejiny AI\n\u00darove\u0148: 2 | Kateg\u00f3ria: koncept\n----------------------------------------\nHistorick\u00fd v\u00fdvoj poznatkov, m\u00ed\u013enikov a te\u00f3ri\u00ed\nv oblasti umelej inteligencie.", "x": 660.0, "y": -232.5}, {"color": "#97c2fc", "fixed": true, "font": {"color": "#1A252F"}, "id": "stupen_vyspelosti", "label": "Stupe\u0148 vyspelosti", "shape": "text", "size": 10, "title": "Stupe\u0148 vyspelosti\n\u00darove\u0148: 2 | Kateg\u00f3ria: koncept\n----------------------------------------\nKrit\u00e9riov\u00e9 delenie syst\u00e9mov AI od \u00fazkej a\u017e po\nv\u0161eobecn\u00fa \u010di superinteligenciu.", "x": 660.0, "y": -112.5}, {"color": "#97c2fc", "fixed": true, "font": {"color": "#1A252F"}, "id": "zabudovana_ai", "label": "Zabudovan\u00e1 AI", "shape": "text", "size": 10, "title": "Zabudovan\u00e1 AI\n\u00darove\u0148: 2 | Kateg\u00f3ria: aplikacia\n----------------------------------------\nSyst\u00e9my umelej inteligencie priamo\nintegrovan\u00e9 do fyzick\u00fdch zariaden\u00ed a robotov.", "x": 660.0, "y": -37.5}, {"color": "#97c2fc", "fixed": true, "font": {"color": "#1A252F"}, "id": "nezabudovana_ai", "label": "Nezabudovan\u00e1 AI", "shape": "text", "size": 10, "title": "Nezabudovan\u00e1 AI\n\u00darove\u0148: 2 | Kateg\u00f3ria: aplikacia\n----------------------------------------\nSoftv\u00e9rov\u00e1 inteligencia funguj\u00faca samostatne\nvo virtu\u00e1lnom prostred\u00ed bez fyzick\u00e9ho tela.", "x": 660.0, "y": 37.5}, {"color": "#97c2fc", "fixed": true, "font": {"color": "#1A252F"}, "id": "jazykove_modely", "label": "Jazykov\u00e9 modely", "shape": "text", "size": 10, "title": "Jazykov\u00e9 modely\n\u00darove\u0148: 2 | Kateg\u00f3ria: metoda\n----------------------------------------\nPokro\u010dil\u00e9 architekt\u00fary spracovania\nprirodzen\u00e9ho jazyka schopn\u00e9 rekurz\u00edvnej\npr\u00e1ce.", "x": 660.0, "y": 157.5}, {"color": "#97c2fc", "fixed": true, "font": {"color": "#1A252F"}, "id": "hierarchicki_agenti", "label": "Hierarchick\u00ed agenti", "shape": "text", "size": 10, "title": "Hierarchick\u00ed agenti\n\u00darove\u0148: 2 | Kateg\u00f3ria: metoda\n----------------------------------------\n\u0160trukt\u00farovan\u00e9 syst\u00e9my agentov pracuj\u00face na\nr\u00f4znych \u00farovniach riadenia a rozhodovania.", "x": 660.0, "y": 232.5}, {"color": "#97c2fc", "fixed": true, "font": {"color": "#1A252F"}, "id": "rekurzivne_algoritmy", "label": "Rekurz\u00edvne algoritmy", "shape": "text", "size": 10, "title": "Rekurz\u00edvne algoritmy\n\u00darove\u0148: 2 | Kateg\u00f3ria: metoda\n----------------------------------------\nAlgoritmy schopn\u00e9 sp\u00e4tne upravova\u0165 a\nvylep\u0161ova\u0165 svoj vlastn\u00fd k\u00f3d a procesy.", "x": 660.0, "y": 307.5}, {"color": "#97c2fc", "fixed": true, "font": {"color": "#1A252F"}, "id": "autonomne_uvazovanie", "label": "Auton\u00f3mne uva\u017eovanie", "shape": "text", "size": 10, "title": "Auton\u00f3mne uva\u017eovanie\n\u00darove\u0148: 2 | Kateg\u00f3ria: metoda\n----------------------------------------\nSchopnos\u0165 syst\u00e9mu samostatne vyvodzova\u0165\nz\u00e1very a pl\u00e1nova\u0165 kroky bez z\u00e1sahu \u010dloveka.", "x": 660.0, "y": 382.5}, {"color": "#97c2fc", "fixed": true, "font": {"color": "#1A252F"}, "id": "eticke_otazky", "label": "Etick\u00e9 ot\u00e1zky", "shape": "text", "size": 10, "title": "Etick\u00e9 ot\u00e1zky\n\u00darove\u0148: 2 | Kateg\u00f3ria: vyzva\n----------------------------------------\nFilozofick\u00e9 a mor\u00e1lne dilemy spojen\u00e9 s\nkonan\u00edm a rozhodovan\u00edm inteligentn\u00fdch\nstrojov.", "x": -660.0, "y": -285.0}, {"color": "#97c2fc", "fixed": true, "font": {"color": "#1A252F"}, "id": "bezpecnost_ai", "label": "Bezpe\u010dnos\u0165 AI", "shape": "text", "size": 10, "title": "Bezpe\u010dnos\u0165 AI\n\u00darove\u0148: 2 | Kateg\u00f3ria: vyzva\n----------------------------------------\nRizik\u00e1 straty kontroly nad auton\u00f3mnymi\nsyst\u00e9mami a ochrana pred ne\u017eiaducim\nspr\u00e1van\u00edm.", "x": -660.0, "y": -210.0}, {"color": "#97c2fc", "fixed": true, "font": {"color": "#1A252F"}, "id": "sprava_zdrojov", "label": "Spr\u00e1va zdrojov", "shape": "text", "size": 10, "title": "Spr\u00e1va zdrojov\n\u00darove\u0148: 2 | Kateg\u00f3ria: vyzva\n----------------------------------------\nEfekt\u00edvne alokovanie v\u00fdpo\u010dtov\u00e9ho v\u00fdkonu a\nenergie pri n\u00e1ro\u010dn\u00fdch oper\u00e1ci\u00e1ch.", "x": -660.0, "y": -135.0}, {"color": "#97c2fc", "fixed": true, "font": {"color": "#1A252F"}, "id": "integracia_vazby", "label": "Integr\u00e1cia sp\u00e4tnej v\u00e4zby", "shape": "text", "size": 10, "title": "Integr\u00e1cia sp\u00e4tnej v\u00e4zby\n\u00darove\u0148: 2 | Kateg\u00f3ria: metoda\n----------------------------------------\nSpracovanie v\u00fdstupov a korekci\u00ed z prostredia\npre priebe\u017en\u00e9 zdokona\u013eovanie agenta.", "x": -660.0, "y": -60.0}, {"color": "#97c2fc", "fixed": true, "font": {"color": "#1A252F"}, "id": "technologicka_singularita", "label": "Technologick\u00e1 singularita", "shape": "text", "size": 10, "title": "Technologick\u00e1 singularita\n\u00darove\u0148: 2 | Kateg\u00f3ria: koncept\n----------------------------------------\nHypotetick\u00fd moment, ke\u010f AI presiahne \u013eudsk\u00e9\nschopnosti a spust\u00ed nekontrolovate\u013en\u00fd pokrok.", "x": -660.0, "y": 60.0}, {"color": "#97c2fc", "fixed": true, "font": {"color": "#1A252F"}, "id": "transhumanizmus", "label": "Transhumanizmus", "shape": "text", "size": 10, "title": "Transhumanizmus\n\u00darove\u0148: 2 | Kateg\u00f3ria: koncept\n----------------------------------------\nHnutie presadzuj\u00face vyu\u017eitie technol\u00f3gi\u00ed na\nroz\u0161\u00edrenie fyzick\u00fdch a ment\u00e1lnych schopnost\u00ed\n\u010dloveka.", "x": -660.0, "y": 135.0}, {"color": "#97c2fc", "fixed": true, "font": {"color": "#1A252F"}, "id": "autonomny_vyskum", "label": "Auton\u00f3mny v\u00fdskum", "shape": "text", "size": 10, "title": "Auton\u00f3mny v\u00fdskum\n\u00darove\u0148: 2 | Kateg\u00f3ria: aplikacia\n----------------------------------------\nVyu\u017eitie AI na samostatn\u00e9 formulovanie\nhypot\u00e9z a vykon\u00e1vanie vedeck\u00fdch experimentov.", "x": -660.0, "y": 210.0}, {"color": "#97c2fc", "fixed": true, "font": {"color": "#1A252F"}, "id": "vyskumna_metodologia", "label": "V\u00fdskumn\u00e1 metodol\u00f3gia", "shape": "text", "size": 10, "title": "V\u00fdskumn\u00e1 metodol\u00f3gia\n\u00darove\u0148: 2 | Kateg\u00f3ria: metoda\n----------------------------------------\nPostupy a logick\u00e9 r\u00e1mce pou\u017e\u00edvan\u00e9 syst\u00e9mom\npri riaden\u00ed vedeck\u00e9ho b\u00e1dania.", "x": -660.0, "y": 285.0}]);
|
|
edges = new vis.DataSet([{"arrows": {"to": {"enabled": false}}, "color": {"color": "#E056FD", "highlight": "#111111"}, "from": "umela_inteligencia", "smooth": {"enabled": true, "forceDirection": "horizontal", "roundness": 0.55, "type": "cubicBezier"}, "title": "Vz\u0165ah: definuje", "to": "terminologia_a_koncepty", "width": 1}, {"arrows": {"to": {"enabled": false}}, "color": {"color": "#3498DB", "highlight": "#111111"}, "from": "umela_inteligencia", "smooth": {"enabled": true, "forceDirection": "horizontal", "roundness": 0.55, "type": "cubicBezier"}, "title": "Vz\u0165ah: \u010dlen\u00ed sa na", "to": "klasifikacia_ai", "width": 1}, {"arrows": {"to": {"enabled": false}}, "color": {"color": "#2ECC71", "highlight": "#111111"}, "from": "umela_inteligencia", "smooth": {"enabled": true, "forceDirection": "horizontal", "roundness": 0.55, "type": "cubicBezier"}, "title": "Vz\u0165ah: vyu\u017e\u00edva", "to": "prostriedky_a_metody", "width": 1}, {"arrows": {"to": {"enabled": false}}, "color": {"color": "#E67E22", "highlight": "#111111"}, "from": "umela_inteligencia", "smooth": {"enabled": true, "forceDirection": "horizontal", "roundness": 0.55, "type": "cubicBezier"}, "title": "Vz\u0165ah: nar\u00e1\u017ea na", "to": "vyzvy_a_problemy", "width": 1}, {"arrows": {"to": {"enabled": false}}, "color": {"color": "#E74C3C", "highlight": "#111111"}, "from": "umela_inteligencia", "smooth": {"enabled": true, "forceDirection": "horizontal", "roundness": 0.55, "type": "cubicBezier"}, "title": "Vz\u0165ah: smeruje k", "to": "buducnost_a_singularita", "width": 1}, {"arrows": {"to": {"enabled": false}}, "color": {"color": "#E056FD", "highlight": "#111111"}, "from": "terminologia_a_koncepty", "smooth": {"enabled": true, "forceDirection": "horizontal", "roundness": 0.55, "type": "cubicBezier"}, "title": "Vz\u0165ah: porovn\u00e1va s", "to": "ludska_inteligencia", "width": 1}, {"arrows": {"to": {"enabled": false}}, "color": {"color": "#E056FD", "highlight": "#111111"}, "from": "terminologia_a_koncepty", "smooth": {"enabled": true, "forceDirection": "horizontal", "roundness": 0.55, "type": "cubicBezier"}, "title": "Vz\u0165ah: etablovala sa ako", "to": "vedna_disciplina", "width": 1}, {"arrows": {"to": {"enabled": false}}, "color": {"color": "#E056FD", "highlight": "#111111"}, "from": "terminologia_a_koncepty", "smooth": {"enabled": true, "forceDirection": "horizontal", "roundness": 0.55, "type": "cubicBezier"}, "title": "Vz\u0165ah: mapuje", "to": "dejiny_ai", "width": 1}, {"arrows": {"to": {"enabled": false}}, "color": {"color": "#3498DB", "highlight": "#111111"}, "from": "klasifikacia_ai", "smooth": {"enabled": true, "forceDirection": "horizontal", "roundness": 0.55, "type": "cubicBezier"}, "title": "Vz\u0165ah: kategorizuje pod\u013ea", "to": "stupen_vyspelosti", "width": 1}, {"arrows": {"to": {"enabled": false}}, "color": {"color": "#3498DB", "highlight": "#111111"}, "from": "klasifikacia_ai", "smooth": {"enabled": true, "forceDirection": "horizontal", "roundness": 0.55, "type": "cubicBezier"}, "title": "Vz\u0165ah: zah\u0155\u0148a formu", "to": "zabudovana_ai", "width": 1}, {"arrows": {"to": {"enabled": false}}, "color": {"color": "#3498DB", "highlight": "#111111"}, "from": "klasifikacia_ai", "smooth": {"enabled": true, "forceDirection": "horizontal", "roundness": 0.55, "type": "cubicBezier"}, "title": "Vz\u0165ah: zah\u0155\u0148a formu", "to": "nezabudovana_ai", "width": 1}, {"arrows": {"to": {"enabled": false}}, "color": {"color": "#2ECC71", "highlight": "#111111"}, "from": "prostriedky_a_metody", "smooth": {"enabled": true, "forceDirection": "horizontal", "roundness": 0.55, "type": "cubicBezier"}, "title": "Vz\u0165ah: vyu\u017e\u00edva pr\u00edstup", "to": "jazykove_modely", "width": 1}, {"arrows": {"to": {"enabled": false}}, "color": {"color": "#2ECC71", "highlight": "#111111"}, "from": "prostriedky_a_metody", "smooth": {"enabled": true, "forceDirection": "horizontal", "roundness": 0.55, "type": "cubicBezier"}, "title": "Vz\u0165ah: implementuje", "to": "hierarchicki_agenti", "width": 1}, {"arrows": {"to": {"enabled": false}}, "color": {"color": "#2ECC71", "highlight": "#111111"}, "from": "prostriedky_a_metody", "smooth": {"enabled": true, "forceDirection": "horizontal", "roundness": 0.55, "type": "cubicBezier"}, "title": "Vz\u0165ah: aplikuje", "to": "rekurzivne_algoritmy", "width": 1}, {"arrows": {"to": {"enabled": false}}, "color": {"color": "#2ECC71", "highlight": "#111111"}, "from": "prostriedky_a_metody", "smooth": {"enabled": true, "forceDirection": "horizontal", "roundness": 0.55, "type": "cubicBezier"}, "title": "Vz\u0165ah: rozv\u00edja", "to": "autonomne_uvazovanie", "width": 1}, {"arrows": {"to": {"enabled": false}}, "color": {"color": "#E67E22", "highlight": "#111111"}, "from": "vyzvy_a_problemy", "smooth": {"enabled": true, "forceDirection": "horizontal", "roundness": 0.55, "type": "cubicBezier"}, "title": "Vz\u0165ah: sk\u00fama", "to": "eticke_otazky", "width": 1}, {"arrows": {"to": {"enabled": false}}, "color": {"color": "#E67E22", "highlight": "#111111"}, "from": "vyzvy_a_problemy", "smooth": {"enabled": true, "forceDirection": "horizontal", "roundness": 0.55, "type": "cubicBezier"}, "title": "Vz\u0165ah: rie\u0161i", "to": "bezpecnost_ai", "width": 1}, {"arrows": {"to": {"enabled": false}}, "color": {"color": "#E67E22", "highlight": "#111111"}, "from": "vyzvy_a_problemy", "smooth": {"enabled": true, "forceDirection": "horizontal", "roundness": 0.55, "type": "cubicBezier"}, "title": "Vz\u0165ah: vy\u017eaduje", "to": "sprava_zdrojov", "width": 1}, {"arrows": {"to": {"enabled": false}}, "color": {"color": "#E67E22", "highlight": "#111111"}, "from": "vyzvy_a_problemy", "smooth": {"enabled": true, "forceDirection": "horizontal", "roundness": 0.55, "type": "cubicBezier"}, "title": "Vz\u0165ah: optimalizuje cez", "to": "integracia_vazby", "width": 1}, {"arrows": {"to": {"enabled": false}}, "color": {"color": "#E74C3C", "highlight": "#111111"}, "from": "buducnost_a_singularita", "smooth": {"enabled": true, "forceDirection": "horizontal", "roundness": 0.55, "type": "cubicBezier"}, "title": "Vz\u0165ah: predpoved\u00e1", "to": "technologicka_singularita", "width": 1}, {"arrows": {"to": {"enabled": false}}, "color": {"color": "#E74C3C", "highlight": "#111111"}, "from": "buducnost_a_singularita", "smooth": {"enabled": true, "forceDirection": "horizontal", "roundness": 0.55, "type": "cubicBezier"}, "title": "Vz\u0165ah: sp\u00e1ja sa s", "to": "transhumanizmus", "width": 1}, {"arrows": {"to": {"enabled": false}}, "color": {"color": "#E74C3C", "highlight": "#111111"}, "from": "buducnost_a_singularita", "smooth": {"enabled": true, "forceDirection": "horizontal", "roundness": 0.55, "type": "cubicBezier"}, "title": "Vz\u0165ah: otv\u00e1ra cestu pre", "to": "autonomny_vyskum", "width": 1}, {"arrows": {"to": {"enabled": false}}, "color": {"color": "#E74C3C", "highlight": "#111111"}, "from": "buducnost_a_singularita", "smooth": {"enabled": true, "forceDirection": "horizontal", "roundness": 0.55, "type": "cubicBezier"}, "title": "Vz\u0165ah: transformuje", "to": "vyskumna_metodologia", "width": 1}]);
|
|
|
|
nodeColors = {};
|
|
allNodes = nodes.get({ returnType: "Object" });
|
|
for (nodeId in allNodes) {
|
|
nodeColors[nodeId] = allNodes[nodeId].color;
|
|
}
|
|
allEdges = edges.get({ returnType: "Object" });
|
|
// adding nodes and edges to the graph
|
|
data = {nodes: nodes, edges: edges};
|
|
|
|
var options = {
|
|
"configure": {
|
|
"enabled": false
|
|
},
|
|
"edges": {
|
|
"color": {
|
|
"inherit": true
|
|
},
|
|
"smooth": {
|
|
"enabled": true,
|
|
"type": "dynamic"
|
|
}
|
|
},
|
|
"interaction": {
|
|
"dragNodes": true,
|
|
"hideEdgesOnDrag": false,
|
|
"hideNodesOnDrag": false
|
|
},
|
|
"physics": {
|
|
"enabled": false,
|
|
"stabilization": {
|
|
"enabled": true,
|
|
"fit": true,
|
|
"iterations": 1000,
|
|
"onlyDynamicEdges": false,
|
|
"updateInterval": 50
|
|
}
|
|
}
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
network = new vis.Network(container, data, options);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return network;
|
|
|
|
}
|
|
drawGraph();
|
|
</script>
|
|
</body>
|
|
</html> |