graphviz

What could cause NetworkX & PyGraphViz to work fine alone but not together?

What could cause NetworkX & PyGraphViz to work fine alone but not together? Question: I’m working to learning some Python graph visualization. I found a few blog posts doing some things I wanted to try. Unfortunately I didn’t get too far, encountering this error: AttributeError: ‘module’ object has no attribute ‘graphviz_layout’ The simplest snip of …

Total answers: 2

How to create a networkx node with a colon?

How to create a networkx node with a colon? Question: I need to create a graph using networkx (and pydot2) from data that I can’t predict. I have a problem with the : character. If I want to create a node called I like Python because : it’s fast and readable, networkx will create two …

Total answers: 1

Graphviz's executables are not found (Python 3.4)

Graphviz's executables are not found (Python 3.4) Question: I am running Python3.4 on Windows 7. I am trying to use the Python interface for graphviz. This is a script I intend to run: from graphviz import Digraph import pydotplus dot = Digraph(comment=’The Round Table’) dot.node(‘A’, ‘King Arthur’) dot.node(‘B’, ‘Sir Bedevere the Wise’) dot.node(‘L’, ‘Sir Lancelot …

Total answers: 31

pydot and graphviz error: Couldn't import dot_parser, loading of dot files will not be possible

pydot and graphviz error: Couldn't import dot_parser, loading of dot files will not be possible Question: When I run a very simple code with pydot import pydot graph = pydot.Dot(graph_type=’graph’) for i in range(3): edge = pydot.Edge(“king”, “lord%d” % i) graph.add_edge(edge) vassal_num = 0 for i in range(3): for j in range(2): edge = pydot.Edge(“lord%d” …

Total answers: 14

how to draw multigraph in networkx using matplotlib or graphviz

how to draw multigraph in networkx using matplotlib or graphviz Question: when I pass multigraph numpy adjacency matrix to networkx (using from_numpy_matrix function) and then try to draw the graph using matplotlib, it ignores the multiple edges. how can I make it draw multiple edges as well ? Asked By: Binary Baba || Source Answers: …

Total answers: 4

laying out a large graph with graphviz

laying out a large graph with graphviz Question: My daughters have made a game not unlike tic-tac-toe. Of course as I played it with them I started brute-forcing it in my head… So at lunchtime I made a quick little Python script to ‘solve’ the game. And I wanted to see the results graphically, so …

Total answers: 4

Django django-extensions commands unavailable ( graph_models )

Django django-extensions commands unavailable ( graph_models ) Question: I’m trying to install django-extensions + graphviz + pygraph but i can’t. I have done the following steps ( under Ubuntu ): sudo apt-get install graphviz libgraphviz-dev graphviz-dev python-pygraphviz in the project virtualenv (running python 2.7.2+): source <path to virtualenv>/bin/activate pip install django django-extensions if i run …

Total answers: 3

how to generate a graph/diagram like Google Analytics's Visitor Flow?

how to generate a graph/diagram like Google Analytics's Visitor Flow? Question: I am trying to generate a diagram similar to that presented by the recent Google Analytics “Visitor Flow”. These are also known as Alluvial diagrams. I can use a web or non-web based solution, as long as I can run it myself. The data …

Total answers: 2

Does anyone know a non-TeX equivalent for TikZ?

Does anyone know a non-TeX equivalent for TikZ? Question: Until now i have used Graphviz to programmatically create diagrams and graphs. Recently, I found out about TikZ and I started loving it. However, it would be overkill in some of my intended uses to have a dependency on TeX, LaTeX, etc. Thus, I want to …

Total answers: 4

graph rendering in python (flowchart visualization)

graph rendering in python (flowchart visualization) Question: to visualize a sequence of nodes connected by edges encoded in python. looking for a python library to visualize such graph data. either a library written in python or python bindings, is ok (i am aware of Visustin, but looking for alternatives) Asked By: eWizardII || Source Answers: …

Total answers: 3