<p>I'm the author of <a href="https://robert-haas.github.io/gravis-docs/" rel="nofollow noreferrer">gravis</a>, an open-source package for interactive graph visualization in Python. It allows to draw directed graphs from NetworkX and the resulting visualization can be modified by user interaction (e.g. node positions, edge curvature and various other visual properties).</p>
<p>Here's a minimal example based on your code:</p>
<pre><code>import gravis as gv
import networkx as nx

g = nx.DiGraph()
g.add_edges_from([(1, 2), (1, 3), (1, 4), (2, 3)])
gv.d3(g)
</code></pre>
<p>Output: NetworkX DiGraph visualized with gravis inside a Jupyter notebook:
<a href="https://i.sstatic.net/8lTu9.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/8lTu9.png" alt="enter image description here" /></a></p>

CC BY-SA 4.0
2022-06-10T14:47:42.680Z
2022-06-10T16:09:47.780Z
2022-06-10T16:09:47.780Z
Robert Haas
<p>I want to draw directed graphs using networkx, followed by manual tuning of the visualization with the use of NETWOLF.</p>
<p>Here is the example of a network.</p>
<pre><code>G =nx.DiGraph()
G.add_edges_from([(1, 2), (1, 3),(1, 4),(2, 3)])
network, config = nw.visualize(G,config={'zoom':3})
</code></pre>
<p>However, the graph shown in NETWOLF was undirected graph.</p>
<p><a href="https://i.sstatic.net/xvKti.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/xvKti.png" alt="enter image description here" /></a></p>
<p>Do you know if you can style network visualizations of directed graphs using NETWULF?</p>

<python><networks><graphs>
Can you style network visualizations of directed graphs using NETWULF?
# Can you style network visualizations of directed graphs using NETWULF?

(Asked by: username_0 on 2021-10-31)

I want to draw directed graphs using networkx, followed by manual tuning of the visualization with the use of NETWOLF.
Here is the example of a network.
G =nx.DiGraph()
G.add_edges_from([(1, 2), (1, 3),(1, 4),(2, 3)])
network, config = nw.visualize(G,config={'zoom':3})

However, the graph shown in NETWOLF was undirected graph.

Do you know if you can style network visualizations of directed graphs using NETWULF?

**Tags:** python, networks, graphs

---

## 1 answers

### Answer by username_1 on 2022-06-10. Score: 3

I'm the author of gravis, an open-source package for interactive graph visualization in Python. It allows to draw directed graphs from NetworkX and the resulting visualization can be modified by user interaction (e.g. node positions, edge curvature and various other visual properties).
Here's a minimal example based on your code:
import gravis as gv
import networkx as nx

g = nx.DiGraph()
g.add_edges_from([(1, 2), (1, 3), (1, 4), (2, 3)])
gv.d3(g)

Output: NetworkX DiGraph visualized with gravis inside a Jupyter notebook:


---

