Questions tagged [graphviz]
Graphviz, developed by AT&T Research Labs, is the leading application for layout and drawing of graphs (objects comprised of vertices connected by edges). It includes the dot language, a complete syntax for graph description and a set of layout engines. Graphviz is free and open source.
graphviz
2,983
questions
0
votes
1
answer
43
views
'dot' added to PATH, but graphviz still can't execute it
I'm having issues getting python graphviz to find 'dot' in the PATH environment variable. This seems to be a well-documented problem, but I still can't seem to get past it.
I have added graphviz to ...
-1
votes
1
answer
22
views
Calling GraphViz dot process using Javas Runtime.getRuntime().exec() and passing in a file name doesn't work but echoing input works
For some reason whenever I execute Graphviz dot using Java's Runtime.getRuntime().exec() in two different ways (one echoing the input, one passing in the filename) - only echoing works.
For eg. this ...
-1
votes
1
answer
63
views
Showing a SVG contains links, created by GraphViz, on HTML
An SVG is create from the following test.dot file:
digraph {
google[label="google"
URL="https://google.com"
target="_blank" fontcolor=blue
]
}
...
1
vote
2
answers
38
views
Clear and automatic DAG visualization
I am trying to draw a DAG (directed acyclic graph) starting from a dataframe with 212 attributes.
I am able to draw it using graphviz
import graphviz
G = graphviz.Digraph()
for col in graph_df....
0
votes
0
answers
31
views
Import graphviz throwing ModuleNotFoundError when I import graphviz in python(ipynb)
I am trying to import Graphviz in vs-code jupyter but its throwing a ModuleNotFoundError.
Traceback (most recent call last)
Cell In[18], line 1
----> 1 import graphviz
2 print(graphviz....
1
vote
1
answer
33
views
Pipe dot graphviz with echo windows from command line gives corrupted output
I'm trying to make an svg from an inline stdin (like in the documentation) :
C:\Users\VERBOSE\Desktop>echo 'digraph { a -> b }' | dot -Tsvg > output.svg
Surprisingly, this gives two files :
...
0
votes
0
answers
24
views
How to visualize GraphvizAlgorithm<Type, Edge<Type>> object to PNG or SVG in C#?
I'm working with the GraphvizAlgorithm<Type, Edge> class in my C# project and I need to visualize this object as a PNG or SVG image. I've created the graph and added the necessary nodes and ...
0
votes
1
answer
28
views
How to use "<f0>" and italics together in labels in .gv files?
I want to make the letters in italics but keep the digits regular.
How should I adjust my codes?
Here are the original .gv codes.
digraph c {
node [height=.1 shape=record]
c [label="{<...
0
votes
2
answers
71
views
How to straighten the lines of a path diagram using DiagrammeR?
I am interested to use DiagrammeR to draw a path diagram. The original codes I used generated a diagram with some curved lines. I tried to look for solutions online and I read this post DiagrammeR: ...
0
votes
1
answer
27
views
Graphviz not calculating exporting image correct inside docker container
I'm trying to render a graph using graphviz library.
I have an application running on a docker container. Whenever I run the command dot -Tsvg -Gsize=10,10\! -Gscale=1 -Eminlen=1 graph.dot -o output....
0
votes
0
answers
29
views
pydotplus.graphviz issue with plot_model from tensorflow
I'm trying to use the plot_model function with TensorFlow to plot my model and save it to a file on Ubuntu 22.04. Pycharm 2024.1.3. python 3.12. Tensorflow 2.16.1.
I assume Pydotplus and Graphviz are ...
0
votes
1
answer
96
views
how to align nodes that are in different subgraphs in graphviz?
the code below creates this diagram. I would like to to make all 3 subgraphs 5 nodes tall. so that, for example data_source_1, process_1 and product_1 are all horizontally aligned properly (same with ...
3
votes
2
answers
74
views
How do I correctly draw edge between records with Graphviz and Haskell
I'm trying to generate a flowchart with Haskell and the Graphviz binding. I want to create edge between nodes with records as it is possible to do it : https://graphviz.org/doc/info/shapes.html.
I ...
1
vote
1
answer
114
views
How can I plot a graph with layered structure with subgraphs within each layer?
I have a set of elements on which I defined a given relationship that allowed me to define a partial order on the set. I then introduced a second relationship to be applied to elements that were not ...
0
votes
1
answer
28
views
How to filter nodes with names that match a pattern or only nodes connected to such nodes with gvpr/graphviz?
I have a DOT file, say bar.dot. How do I use gvpr to output a graph as described below?
let A be the set of nodes in bar.dot with names that contain foo
the graph should only contain nodes in A or ...
0
votes
1
answer
24
views
How to Escape Brackets in dot files?
I'm generating the following graph:
strict digraph {
0 [shape=none;label=<<TABLE BORDER="1" CELLBORDER="1" CELLSPACING="0"><TR><TD BORDER="0" ...
0
votes
1
answer
33
views
Graphviz how to shrink spacing between subscript and script?
I make graphviz with math notation and sometimes the spacing between the greek letter and the subscript is a little too big. Is there a way to shrink this space?
digraph G {
X -> Y [label = <&...
-1
votes
1
answer
62
views
Can not run a .exe file which compiled with Graphviz libraries on Windows
DESCRIPTION:
I want to involve a Graphviz library gvc in my Cpp project.
The Cpp project is an extremely simplified syntax analyser, and I include the graphviz/gvc.h to draw syntax analysis tree.
I ...
0
votes
0
answers
147
views
How can I install pygraphviz?
I try to Install this library "pygraphviz" in python but I face this problem :
Collecting pygraphviz
Using cached pygraphviz-1.12.tar.gz (104 kB)
Installing build dependencies ... done
...
0
votes
1
answer
69
views
Simple Horizontal layout of graph nodes in networks diagram
I have a dataframe containing flight connection data in a network representation
edge
source
target
type
ZRH_ZRH_-1_base_ZRH_PMI_470_flight_idle0_start
ZRH source
ZRH-PMI 470
start
...
0
votes
0
answers
33
views
Import ERROR but I've installed PYGRAPHVIZ 1.12
The question is......
C:\Users\26913\AppData\Local\Programs\Python\Python311\Lib\site-packages\networkx\drawing\nx_pylab.py:433: UserWarning: No data for colormapping provided via 'c'. Parameters '...
0
votes
0
answers
57
views
Java CodeCache is Full executing PlantUML / GraphViz
I am attempting to generate diagrams for my plantuml file locally but keep coming across a Java CodeCache error, I understand in theory what the issue is, that is I need to increase the Cache size, ...
0
votes
1
answer
37
views
How to place a set of nodes over another set of nodes in dot graph
I am trying to go through the dot language for drawing directed graphs. While trying to get a grip on the ways to correctly lay the nodes in the graphs, I am trying to place a set of nodes and arrange ...
0
votes
1
answer
20
views
Equivalent of `xlabel` for clusters in graphviz?
The DOT code
digraph {
newrank=true;
{
node [shape=box]
edge [dir=none, style=dotted]
A -> B
B -> C
C -> D
}
Aa;Ab
...
0
votes
1
answer
55
views
Why does setting rankdir=LR order nodes top-to-bottom?
After several hacky/copy-paste graphviz diagrams, I'm making at attempt at understanding the dot language in earnest, and I have a very basic question.
The following dot code:
digraph G
{
subgraph ...
0
votes
1
answer
35
views
Graphviz vertical align subgraph with node while using left to right
I am trying to create a subgraph that is below the MEMOR node using Graphviz and I am struggling to get them lined up correctly,
This is what I have tried so far:
I want to get the ST boxes to be ...
0
votes
0
answers
32
views
Pass arguments to graphviz for pydot graph
I've got a pydot graph representing a hierarchy I've generated in networkx and I'm trying to output it to disk with graphviz attributes.
So far I've got:
p = nx.drawing.nx_pydot.to_pydot(G)
p....
0
votes
1
answer
72
views
graphviz arrow, node, table - I'm looking for a solution to avoid a double arrow?
I generate a code for graphviz. This network plan always contains 2 arrows for there and back directions. Unfortunately, 2 separate arrows are displayed in the example - but I don't want that...
...
0
votes
1
answer
62
views
How to center text in custom html-style GraphViz/DiagrammeR node?
Following the helpful answer of a previous question, there is still an unresolved issue, that the hourglass symbol (i.e. the text in custom node) is not centered, so that vertical edges are not in the ...
0
votes
1
answer
123
views
Generate data flow graph for ETL process
I would like to generate something like a data flow diagram for an ETL process.
What I want to achieve is to have (the minimal example) two tables - source and destination - both tables with their ...
0
votes
1
answer
42
views
DOT Layout Forcing Graph Into 2 Levels
I am developing a little application to render electrical circuits as graphs so the user can easily visualize the networks. That said, I am having a little bit of an issue while rendering the ...
0
votes
1
answer
48
views
Place xlabel below node in DiagrammeR / Graphviz
I want to create system dynamics graphics for a course material that I write in Quarto, ideally with Graphviz (R package DiagrammeR). To be as close as possible to the standards, I want to use a "...
0
votes
1
answer
101
views
Python NetworkX graphviz layout - RuntimeWarning about gvplugin_pango.dll dependencies
After installing pygraphviz via conda, and trying to create graph:
# graph: nx.DiGraph
pos = nx.nx_agraph.graphviz_layout(graph, prog='dot', ...)
# pos[node] ...
positions are calculated normally, ...
0
votes
1
answer
30
views
Graphviz enforce edge start and stop position
I have a GraphViz directed graph, that looks in a simplified version like this
digraph g {
rankdir=LR
node [shape=record]
subgraph "cluster_R" {
label="R"
"R_in&...
0
votes
1
answer
44
views
Networkx uses graphviz_layout for layout drawing, edge disappeared
When I use python networkx graphviz_layout to draw hierarchical layouts, the corresponding edge disappears in the generated graph when I try to change the weight of the edge.
Below is the specific ...
0
votes
2
answers
35
views
Move 2 nodes to the side without affecting the rest of the layout
I have the following dot layout:
digraph {
a b c
a -> b b -> c
b -> g1 [dir=back,constraint=false]
b -> g2 [dir=back,constraint=false]
g1 -> g2 [style=invis]
}
I would ...
0
votes
0
answers
14
views
Creating a .dot text file from list of libraries and their depths
I have the following python code to create a text/dot file from a list of libraries in a format specified at the bottom.
def generate_dot(tree_list):
stack = []
last_base_library = None
...
0
votes
1
answer
47
views
graphviz, show Inherited attributes of a class
I would like to solve the following problem in Graphviz.
I have two classes A and B. Both have some attributes.
When I combine class A and B to class C, I want a list of all (in this case all ...
1
vote
0
answers
66
views
Improve performance on Networkx graphviz_layout for large volume of nodes and edges
I have a network graph dataset which has around 12.5k root nodes and 70k edges which obviously would end up creating a huge graph. However, the end user would not be consuming the graph in its ...
0
votes
1
answer
30
views
Is it possible to set the nodes and edges positions specified by user in Python Graphviz?
I'd like to build the following chart (I did it NOT in Graphviz):
I tried to do it in Python Graphviz with the following code:
g = Digraph(engine='neato')
g.node('1', label='Very long name', pos='0,0'...
0
votes
1
answer
23
views
Graphviz concentric joined rings
I want a graph that is basically just two rings of the same number of nodes, with the corresponding nodes of the two rings joined. In my mind, this should just be two concentric rings, something like ...
1
vote
1
answer
100
views
How to place text next to a node?
I am rendering a large-ish graph using Graphviz's neato.
All of the following takes place in this environment:
digraph G {
graph [scale="1,0.7"]
Somewhere in there, I want to display a ...
0
votes
1
answer
46
views
Dot language: can you connect a containing box to another?
Using Dot language and Graphviz to render, I've been able to create two boxes (nodes) labelled "A" and "B", one above the other, with a dashed bounding box around them:
digraph G {
...
0
votes
0
answers
40
views
Graphviz arrow pointing to another
From the box there will be an arrow pointing to another arrow's tail then position the diamond like that. I've been trying to use the pos attribute but it's not working. Is this possible in Graphviz?
...
1
vote
1
answer
144
views
PyInstaller: Unable to find '/usr/sbin/neato' when adding binary and data files
I am using PySide6 and pygraphviz to create a simple three widget desktop application. When I use pyinstaller --onefile --noconsole stackedAPP.py, PyInstaller throws me this error: Unable to find '/...
0
votes
1
answer
37
views
Swap two parts of a dot layout
I have the following dot layout.
digraph {
subgraph {
rank=same;
node [shape=plain] work
node [shape=rectangle,group=work] w2
}
subgraph {
rank=same;
node [shape=plain] main
...
2
votes
0
answers
53
views
Quarto cutting off diagrams with columns
I've been working to try and make a slide for a presentation with a 4x4 set of figures showing four different Directed Acyclic Graphs. However, it seems that Quarto won't resize the diagrams for the ...
1
vote
1
answer
61
views
How can I center nodes in a Graphviz cluster
I have the follow dot definition of a graph:
digraph G {
bgcolor="gray"
node [
style=filled
shape="circle"
fillcolor="green4"
penwidth="2"
...
0
votes
1
answer
38
views
How can I have this graphviz html-like table left aligned in the node?
My dot description of the graph is:
digraph {
bgcolor="#3D3F41"
a [
shape="box"
color="white"
fixedsize=true
fontcolor="white&...
0
votes
1
answer
353
views
Error: "spawn dot ENOENT" when open side preview, but i've already installed Graphviz(dot)
enter image description here
i followed a tutorial of visualizing a decision tree, i opened a DOT file in VSCODE and installed graphviz extension(by stephanvs),then opened the side preview,
it should ...