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, developed by AT&T Research Labs, is the leading application for the 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.

Useful Graphviz Resources

Related Tags

2917 questions
1
vote
1 answer

Display PyTorch model with multiple outputs using torchviz make_dots

I have a model with multiple outputs, 4 to be exact: def forward(self, x): outputs = [] for conv, act in zip(self.Convolutions, self.Activations): y = conv(x) outputs.append(act(y)) return outputs I wanted…
FiReTiTi
  • 5,597
  • 12
  • 30
  • 58
1
vote
1 answer

How do I get individual clusters on 3 different levels?

Here's the dot file I have: digraph G { rankdir=TB; ranksep=1; subgraph cluster_application { subgraph cluster_module_core { init_a -> service_a; init_a -> service_b; init_a -> service_c; init_a…
Loïc Faure-Lacroix
  • 13,220
  • 6
  • 67
  • 99
1
vote
1 answer

How correctly import graphviz?

When I try to import graphviz package to my project I have error: ModuleNotFoundError: No module named 'graphviz' I use Pycharm on Windows. I install package from Settings -> Project Interpreter, but error it's still the same. I tired python -m pip…
1
vote
2 answers

graphviz - prevent nodes and edges overlapping without splines

I have a simple fdp graph laid out in graphviz, with a bunch of nodes (rectangle and diamond shaped) having fixed positions, and some of those nodes have child nodes (oval shaped) that I want to be arranged around them automatically. I want all…
Architector 4
  • 98
  • 1
  • 8
1
vote
2 answers

Graphviz: Flat horizontal graph with arching edges?

I have this code graph G { node [shape=circle] rankdir=LR; 1 -- 10; 2 -- 9; 3 -- 8; 4 -- 7; 5 -- 6; } but I want to have the vertices 1 ... 10 in a flat, horizontal row, then with the connecting edges as arcs (alternating above, below) connecting 1…
147pm
  • 2,137
  • 18
  • 28
1
vote
2 answers

Nodes with different shapes in pygraphviz

I'm trying to visualize an automaton in pygraphviz, like the example in graphviz documentation: I've found that node shapes can be changed like: A.node_attr['shape']='circle' # A is a pygraphviz AGraph This changes the shape of all nodes, but I…
MHTB
  • 39
  • 5
1
vote
0 answers

Reading default attributes of nodes with read_graphviz()

I am stuck with the BGL trying to read nodes default attributes. I managed to read nodes, edges and even graph attributes. But not the default attributes (color, fontname, shape) as in the graph below: digraph G { node [color = black, fontname =…
Heyji
  • 1,113
  • 8
  • 26
1
vote
1 answer

Graphviz as library in windows

I am contacting you regarding Graphviz libraries. I have a bug that I observed when using graphviz as a library within c++ code and qt creator on windows. Based on the example from the Documentation, I used the following function to convert a dot…
froz
  • 163
  • 1
  • 12
1
vote
1 answer

Doxygen fails to use Graphviz to generate dependency graph

I am trying to use Doxygen to generate the documentation of my c++ program, and I wish to have the dependency graph as well. So I installed graphviz-2.40.1, the path to graphviz is shown below: which dot /usr/local/bin/dot I turned on the HAVE_DOT…
Shiqi He
  • 95
  • 3
  • 10
1
vote
1 answer

Positional argument follows keyword argument error during decision tree visualisation

I am trying to generate visualisation of decision tree. However, I am getting an error that I cannot resolve. This is my code: from sklearn.tree import export_graphviz from sklearn.externals.six import StringIO from IPython.display import…
Matt
  • 166
  • 1
  • 2
  • 18
1
vote
1 answer

Graphviz: Creating flowchart with straight edges between nodes in three clusters

I am trying to recreate this blockchain flowchart I am unable to get some of the edges as horizontal, even though setting edge weights as 100 and using invisible nodes. The code I have written is below. In that I have created three clusters, in…
solyarist
  • 424
  • 3
  • 17
1
vote
0 answers

GraphViz - how to render subgraph as an ascii with fixed ratio?

I’ve been struggling for awhile on how to keep subgraph within rectangle instead of “Tetris” shapes when edge is being added and layout becomes more complex. on Layer 2 in the codes below you’ll clearly notice “C”-shaped subgraph. Is it possible to…
1
vote
1 answer

Graphviz: Graph with a node common in multiple subgraphs?

The objective is to able to create graphs in which a node can be overlapping between two or more subgraphs. Something like in the (erroneous) image below (A->B and A->C are in different subgraphs): Something similar has been asked in Graphviz:…
solyarist
  • 424
  • 3
  • 17
1
vote
2 answers

can we change the color of node in react + graph

I am using the below package. I have the first and last node. I want to change its background color. nodes: [ { id: 'Node 1', label: "Node 1", title: "node 1 tootip text" ,first:true}, { id: 2, label: "Node 2", title: "node 2 tootip…
user944513
  • 12,247
  • 49
  • 168
  • 318
1
vote
0 answers

Python pygraphviz not working due to dot not found in path

I am trying to get the fast-autocomplete library to work. I have a virtualenv with Python 3.6 installed for this. Everything else works but when I am trying to visualize the graph, I keep getting the following error: File…
rishi
  • 2,564
  • 6
  • 25
  • 47