From 9ab71834927274c6c1fe6cff1af9124e32658974 Mon Sep 17 00:00:00 2001 From: Giancarlo Perrone Date: Wed, 5 Dec 2018 09:34:13 -0800 Subject: [PATCH 1/2] adding missing module --- pyvis/network.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyvis/network.py b/pyvis/network.py index bf6970a..6cb8355 100644 --- a/pyvis/network.py +++ b/pyvis/network.py @@ -5,6 +5,7 @@ from jinja2 import Template import webbrowser from IPython.display import IFrame +from IPython.core.display import HTML from collections import defaultdict import networkx as nx import json From af16b299a47369ae0bc991ce699c282c125edd13 Mon Sep 17 00:00:00 2001 From: Giancarlo Perrone Date: Thu, 6 Dec 2018 10:11:05 -0800 Subject: [PATCH 2/2] Defaulting directed graph edges to point to destination node --- pyvis/edge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyvis/edge.py b/pyvis/edge.py index 269e732..e7673a3 100644 --- a/pyvis/edge.py +++ b/pyvis/edge.py @@ -5,4 +5,4 @@ def __init__(self, source, dest, directed=False, **options): self.options['from'] = source self.options['to'] = dest if directed: - self.options["arrows"] = "from" + self.options["arrows"] = "to"