     });
            var FlatButton = document.getElementById('FlatButton');
            FlatButton.addEventListener('click', function () {
                window.cy.layout(
                    {
                        name: 'dagre',
                        avoidOverlapPadding: 100,
                        animate: false,
                        avoidOverlap: true
                    }
                ).run();
                window.cy.resize();
                window.cy.fit();
            });


          