s: "to", color: { color: "blue" } },
                { from: 1, to: 6, arrows: "to", color: { color: "blue" } },
                { from: 4, to: 7, arrows: "to", color: { color: "red" } },
                { from: 5, to: 7, arrows: "to", color: { color: "red" } },
                { from: 7, to: 8, arrows: "to", color: { color: "blue" } },
            ]);

            // create a network
            var container = document.getElementById("mynetwork");
            var data = {
                nodes: nodes,
   