Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
64 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 ...
Curtis Wang's user avatar
0 votes
0 answers
20 views

Is there any way to export an existing Django model information into a visual form

I understand that I can create .dot files using django-extensions. I am also able to create SVGs from the .dot file using pygraphviz. However, the outputs are huge, ugly and difficult to navigate. Are ...
alj's user avatar
  • 3,009
1 vote
1 answer
149 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 ...
Rafa's user avatar
  • 169
0 votes
0 answers
304 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 ...
Costa 's user avatar
0 votes
0 answers
37 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 '...
Aing Fir's user avatar
1 vote
0 answers
82 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 ...
Kausty's user avatar
  • 849
0 votes
0 answers
32 views

How to make bnlearn and dowhy compatible in jupyter notebook?

I am trying to do causal analysis in python and obtain direct and indirect effects using dowhy but the graph/structure is not understandable/complex even after increasing the threshold upto 0.8, while ...
user23483800's user avatar
0 votes
0 answers
70 views

IPython SVG renderer produces wrong text in VSCode on Windows

I'm working with python and I created a custom class with a draw method which returns a graphviz.Digraph object. Inside a Jupyter Notebook, when trying to render this object using VSCode built-in ...
Alberto Coppi's user avatar
1 vote
1 answer
192 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 '/...
dorito's user avatar
  • 27
0 votes
2 answers
115 views

Getting pygraphviz clusters to point at each other? (And render properly.)

I have seen some posts talking about this sort of thing, like here, and here, but I've recreated that graphviz spec and it's not rendering the same. In particular, where an arrow should be starting ...
user23239455's user avatar
1 vote
1 answer
120 views

How do I uniformly scale edge distance based on weight with graphviz in Python?

I have a graph where all the nodes are one degree of separation from the root node. All the edges have different weights however this doesn't seem to be taken into consideration when graphviz renders ...
LBlend's user avatar
  • 43
0 votes
2 answers
81 views

Graphviz unnecessarily long edges / distances between nodes

I have a tree which I plot with Graphviz, however the distances between the nodes is very large and not efficiently used. Can this be improved? I tried playing with mindist, splines and overlap, but ...
WG-'s user avatar
  • 1,068
3 votes
2 answers
2k views

Cannot install pygraphviz: fatal error C1083: Cannot open include file: 'graphviz/cgraph.h': No such file or directory

Yes, I know a discussion is here: Issues installing pygrahviz "fatal error C1083: Cannot open include file: 'graphviz/cgraph.h': No such file or directory" But none of these ...
Tang0's user avatar
  • 35
0 votes
1 answer
231 views

Converting between pixels and graphviz sizes/coordinates

How can I translate the coordinates of a PNG render of a graph, to the coordinates I get from -Tjson or -Tjson0? For example, I have a PNG that's 167 x 251, but the .json file says the bounding box (...
PuzzleAndy's user avatar
0 votes
1 answer
83 views

samehead attibute in Graphviz python

I'm trying to make the edges that share the same manager merge with each other. however, when I set the parameters for the attribute it doesn't apply to the org chart created using the code. G....
Ahmed Alharbi's user avatar
0 votes
1 answer
79 views

use graphviz can I make 2 blocks boundary. touch each others

I done the following : using the following code : digraph G{ graph [ rankdir=LR ranksep = 0 nodesep=0 ]; node [shape=box, margin="0,0&...
Guy Bar's user avatar
  • 21
2 votes
1 answer
289 views

Create a graph in Python (with pygraphviz) when the number of nodes is huge

I am trying, in Python, to create a graph from lists where I can see the merge and ramifications of my lists. I am sure the first item of the list is always the same for all lists. For these three ...
Catarina Nogueira's user avatar
0 votes
1 answer
99 views

How to make nodes overlap in Graphviz?

I want to make some of the nodes in my graph to overlap in the following manner: I am using pygraphviz to render graphs. So far, I have been trying to get the coordinates of the overlapping nodes and ...
shasha's user avatar
  • 1
0 votes
1 answer
769 views

pygraphviz installation error in Google Colab

Installing Pygraphviz on Google Colab using pip **pip install pygraphviz** gives the following error: Preparing metadata (setup.py) ... done Building wheels for collected packages: pygraphviz error: ...
Bipin Babu's user avatar
0 votes
2 answers
534 views

I can't install the PyGraphviz module in python 3.9.x

I want to use graph theory in one of my projects, that's why I did some research and I found two modules pretty usefull to do what I want to do. I found the networkx module that allows me to create ...
sdourte's user avatar
0 votes
1 answer
142 views

How can I move a Grapviz node to the left?

I'm making an application on Sreamlit, which should visualize Gradient Descent. I have this code: graph= graphviz.Digraph(graph_attr={'rankdir':'LR'}) #black arrows graph.edge(f'3', '12 ', label='3*...
poloniki's user avatar
  • 1,160
1 vote
1 answer
430 views

Python Graphviz - Import SVG file inside a node

I need to import a SVG image using the python librairy of graphviz. Here is the SVG file (created with the software draw.io): <?xml version="1.0" encoding="UTF-8" standalone=&...
Vincent Bénet's user avatar
0 votes
1 answer
137 views

Need to put more information in NetworkX graph

I'm trying to build an organizational chart, but I need to enter more than one piece of information in the chart and insert people's photos. I will put it below as I did and I would like to know how I ...
Pedro H C Miguez's user avatar
0 votes
0 answers
139 views

Graphviz Binary Search Tree

quick question, is there a way to display a tree is more bst manner, instead of standard graph one?
mkownak's user avatar
  • 13
1 vote
1 answer
176 views

How to use nested tuples to draw graphviz digraph in Python?

I want to draw Digraph of graphviz by using a nested tuples: nested = (("2","3"),("5", "6")) How to process nested to get the next result? from graphviz import ...
Oleg Dats's user avatar
  • 4,103
0 votes
1 answer
96 views

Cannot see the output on Google colab when I use pygraphviz

I have the following code using pygraphviz on Google colab. How do I see the output graph? This is similar to [this question][1], except for the fact that the solution only works for graphviz, and not ...
Ryan Hendricks's user avatar
0 votes
1 answer
405 views

Comparing two graphviz.Digraph objects

I have two digraphs in the form: dot1 = graphviz.Digraph(format='svg') dot1.attr('node', shape = 'box') dot2 = graphviz.Digraph(format='svg') dot2.attr('node', shape = 'box') How can I compare these ...
Maryam's user avatar
  • 149
0 votes
2 answers
526 views

Can't generate graph using graphviz and dot layout

I am using pygraphviz 1.6 to generate the a plot using Python 3.6. Unfortunately, I can't update Python. While generating the graph, the command graph.layout("dot") generates the error: ...
user1315621's user avatar
  • 3,292
0 votes
1 answer
402 views

How to add ring (level) in twopi layout of pygraphviz in python?

There are four rings (levels) of twopi layout in pygraphviz: How to edit the attribute of the graph to add rings or levels of twopi layout? Here are the codes of setting twopi attributes. G_pgv....
user19420206's user avatar
0 votes
1 answer
181 views

Changing graphviz Log Level in Python

I'm using the Python graphviz library. While my app is using one log level (e.g. DEBUG), I'd like to set the graphviz log level to something else (e.g. WARNING). There is no graphviz.set_loglevel() ...
Adi Shavit's user avatar
  • 17.1k
1 vote
0 answers
98 views

pygraphviz: How to avoid TypeError: 'NoneType'?

I installed pygraphviz using pip installer and used the first code example from their projects tutorial page to check if everything works: import pygraphviz as pgv G = pgv.AGraph() However, I get ...
Jan's user avatar
  • 11
0 votes
1 answer
738 views

Decision Trees - How to interpret decision tree node splitting on graphed data

I have a general question that's probably not fit for Stack Overflow. Apologies in advance. In all the online articles they display these graphs. I understand Gini is used in entropy. How are values ...
luckyging3r's user avatar
  • 3,125
2 votes
1 answer
2k views

How to visualize a Bayesian network model constructed with pomegranate

I want to visualize a Bayesian network created with pomegranate with the following code. import math from pomegranate import * import networkx as nx import matplotlib.pyplot as plt import pandas as pd ...
Less95 Less95's user avatar
0 votes
1 answer
775 views

Pygraphviz: specify dot renderer

I'm trying to render a graph as a SVG. The problem is with PyGraphviz, but I made a dot file to debug/make it easier to share. Note that my label contains text in bold so I have to use HTML-like ...
ToufiPF's user avatar
  • 21
2 votes
1 answer
1k views

having an issue when installing pygraphviz

I'm having an issue when trying to install pygraphviz via pip. It took a long time, but I managed to install graphviz. (base) C:\Users\>pip install graphviz --upgrade Requirement already satisfied: ...
whitepanda's user avatar
0 votes
1 answer
153 views

Graphviz doesn't draw all dependencies

I'm coding a neural network with Python (v3.9.10) in NumPy (v1.19.5) and want to draw a graph of all the dependencies using GraphViz(v latest) for JupyterLab (v3.2.8). Like what's seen in ML papers! I'...
baubel's user avatar
  • 87
0 votes
1 answer
940 views

python: graphviz -- how to specify node render order

How can I ensure that nodes are rendered in the order that they are defined in my source code? In my code, I have node 'A' defined first, and so was hoping it would be rendered at the 'top' of the ...
HumanityFirst's user avatar
0 votes
2 answers
599 views

python: rank attribute in graphviz to align nodes

i'm trying to get my nodes to align in graphviz using the 'rank' attribute, but i'm not getting the desired result. i'm using graphviz in a jupyter notebook. here is my code: import graphviz from ...
HumanityFirst's user avatar
2 votes
2 answers
5k views

Using django-extensions to generate a model graph in PNG format using Windows 10 (without using Conda or Anaconda)

I am using django-extensions to generate a model graph for my Django application. My installation steps are the following: $ pip install django-extensions $ pip install pyparsing pydot An ...
Cord Kaldemeyer's user avatar
0 votes
1 answer
2k views

How can I create a table like this with Graphviz (Table with arrow connecting rows)

I need to make a table with arrows pointing from one row to another. On the left hand side, the arrows are pointing from the top to bottom and vice versa on the right hand side. This table will be ...
ched's user avatar
  • 83
1 vote
2 answers
490 views

Dask: Visualize dask task graph of nested delayed functions

For the following toy example, I am attempting to parallelize some nested for loops using dask delayed/compute. Is there any way I can visualize the task graph for the following? import time from ...
khubull's user avatar
  • 66
4 votes
1 answer
1k views

Networkx issue : need to install Graphviz / Pygraphviz (Anaconda 2021.11, WIN10x64)

I'm using Jupyter Notebook to do graph analysis. I need to use Networkx to generate MultiDiGraph, I need to plot it as a tree, but there is an error occurring : from networkx.drawing.nx_agraph import ...
Lemisourd's user avatar
  • 145
1 vote
2 answers
599 views

Networkx and graphviz. How to suppress node and edge positions in dot output?

Take this simple networkx script. import networkx as nx g = nx.DiGraph() g.add_edge("a","b") g.add_edge("a","c") g.add_node("D") dotter = nx....
JL Peyret's user avatar
  • 11.9k
0 votes
2 answers
527 views

Left Justifications in Graphviz Nodes via HTML Formatting in Python

I'm using the Python graphviz library and my nodes are formatted with HTML. My python code generates this node: MyNode [label=<{Topic|<b>SubHeader</b>|field1: int<BR/>fields: dict&...
Adi Shavit's user avatar
  • 17.1k
26 votes
7 answers
12k views

How do I resolve the pygraphviz error on mac OS?

I'm having trouble installing pygraphviz and I'm using Anaconda on macOS Monterey. I already had graphviz on Anaconda. I then did brew install graphviz and then pip install pygraphviz but I keep ...
saucykins's user avatar
  • 271
0 votes
1 answer
270 views

python cgi interaction fails to find graphviz program twopi

I've got a maddening bug where my python script succeeds in doing something when run independently, but fails when run as a cgi script called by jquery's $.ajax(). Any insights would be welcome. I'm ...
jjon's user avatar
  • 680
-1 votes
1 answer
1k views

Adjusting the width of edges in a python graphviz graph

I am trying to visualize a transition probability matrix for a finite Markov chain using the python interface to graphviz. I want the states of the Markov chain to be nodes in the graph, and I want ...
Steven Scott's user avatar
1 vote
1 answer
1k views

How to place nodes on top of others with Graphviz?

I am trying to design a very specific type of graph with certain colors and shapes but I am unable to tell if this is achievable with Graphviz. My goal is to draw a directed graph where each node: is ...
solub's user avatar
  • 1,353
0 votes
2 answers
193 views

Creation of two networks with the same node coordinates

I create a network add nodes and edges. I view it (it creates a dot and pdf file automatically). Later, I want to create a second network with the same nodes but different edges. I want to place the ...
Ferda-Ozdemir-Sonmez's user avatar
0 votes
0 answers
1k views

Graphviz (DOT) Preview doesn't work VSCode

Screenshot of my VScode I have tried to download the preview extension. But, it still doesn't work. Could anyone help to solve this problem? I really appreciate it. Thanks.
John Wazwozki's user avatar

1
2 3 4 5 6