diff --git a/notebooks/dot.html b/notebooks/dot.html
new file mode 100644
index 0000000..d0b07ad
--- /dev/null
+++ b/notebooks/dot.html
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/notebooks/example.html b/notebooks/example.html
index 5c1a211..689d070 100644
--- a/notebooks/example.html
+++ b/notebooks/example.html
@@ -1,7 +1,7 @@
-
-
+
+
@@ -12,92 +12,17 @@
@@ -107,17 +32,6 @@
-
-
-
-
+
+
{{heading}}
@@ -155,17 +155,17 @@ {{heading}}
{% if use_DOT %}
var DOTstring = "{{dot_lang|safe}}";
- var parsedData = vis.network.convertDot(DOTstring);
-
- data = {
- nodes: parsedData.nodes,
- edges: parsedData.edges
- }
-
- var options = parsedData.options;
- options.nodes = {
- shape: "dot"
- }
+ data = vis.network.dotparser.DOTToGraph(DOTstring);
+
+ var options = data.options;
+ options = Object.assign(options, {
+ nodes: {
+ shape: "dot"
+ },
+ });
+ {% if options %}
+ options = Object.assign(options, {{options|safe}})
+ {% endif %}
{% else %}