As of May 31, 2023, we have updated our Code of Conduct.

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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
15 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
2 answers
54 views

dot graphviz Different ranking of nodes

I need to draw a complex control flow where the divisions into horizontal and vertical axies are important. Dot only allows you to set rankdir (LR, TB) and one perpendicular axis (using rank = same ) ...
PFA hard's user avatar
0 votes
1 answer
39 views

Node Alignment and Edge Labeling errors

Current version Desired version trying to recreate phase diagram in graphviz but I am unable fix three main issues: Aligning all three nodes: solid, liquid, gas in a straigh line Aligning edges ...
Crappy Coder's user avatar
2 votes
2 answers
168 views

Random Forest classifier value is not integer

I have trained RF model using binary classification target variable. As my data is imbalanced, I'm using class_weight='balanced' (I saw that it might be the cause, could not find solution for this ...
Edo Wexler's user avatar
0 votes
0 answers
21 views

Comment out graphviz code from getting compiled?

How do you comment out code in graphviz so that I can label chunks of code without it getting compiled (If possible)? I tried C++ style // but it did not work.
Crappy Coder's user avatar
1 vote
1 answer
34 views

Graphviz DOT syntax... is there a way to change the anchor of nodes?

I'm trying to replicate hundreds of directed graphs from another software for documentation purposes. I have the written a plugin so the software creates output in dot syntax, and we can import/...
Eyelash's user avatar
  • 1,740
0 votes
1 answer
24 views

Positioning same-ranked nodes in a graph

The following is my graphviz code, and the produced image: digraph D{ rankdir = TB node[ shape = rect style = filled; fillcolor = "#C0C0C033" ...
Uduru's user avatar
  • 447
0 votes
1 answer
31 views

Specify or Change left and right child of a node in graphviz python

I'm using Digraph from graphviz module in python to visualize a tree. I create nodes by Digraph.node() and create edges by Digraph.edge(). I want to specify which one should be right node and which ...
ariankazemi's user avatar
3 votes
1 answer
31 views

Networkx DiGraph nodes, set the border and inner color and format text

I'm using Django, and in my view I generate a diagram of relations between parties. The problem is with the following: nx.set_node_attributes(G, fill_coloring, name="background") But this ...
Berik's user avatar
  • 33
0 votes
1 answer
52 views

How to draw bloks top to bottom in the PlantUML/Graphviz

I want to draw like my drawing(first photo) in the plantUML(second photo) but I can not align box top to bottom. How can I do that? My plant UML code: @startuml digraph dfd{ node[shape=record] { ...
kerem0101's user avatar
0 votes
0 answers
16 views

element a: validity error : Element a does not carry attribute xlink:href

I created with dot a svg file like the one below (bb.svg): <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//...
albert's user avatar
  • 8,128
0 votes
1 answer
46 views

filter graphviz dot file

I have a project meson based, and I am able to generate using ninja a dot file ninja -t graph myExecutable | dot -Tpng -ograph.png Now I would like to filter the dot file to exclude all the obj files ...
Mariano's user avatar
  • 220
0 votes
1 answer
34 views

Graphviz: how to create an edge where parts of the label have different colors

I'm not sure how to color one part of the text with one color and another part with a different color. It's probably just easier to show you what I want with a picture. This is the best I can get it ...
carlcarlyle's user avatar
0 votes
1 answer
32 views

I can't get dtreeviz to work on Visual Studio and Visual Studio Code

I can't get dtreeviz to work on Visual Studio or Visual Studio Code. The error I get (no matter what I change my import statement to): cannot import name 'run' from 'graphviz.backend' (C:\Users\<...
Scott Bond's user avatar
0 votes
2 answers
88 views

is there a way to force a cluster to go on top of the diagram in diagrams

I'm using diagrams and I'm trying to force a cluster to go on top. Aplogies for the long code example, I didn't manage to render anything with less complexity that conveyed the same issue. import os ...
Joey Baruch's user avatar
  • 3,938
0 votes
0 answers
16 views

is there a way to specify which node goes above another in pythons diagrams?

I'm using diagrams and trying to force a node to go on top of another: with Diagram("My Diagram", show=False): A = ELB("A") B = EC2("B") C = RDS("C")...
Joey Baruch's user avatar
  • 3,938
2 votes
1 answer
41 views

How to visualize nodes in horizontal cluster with invisible edges (Python diagrams)

I'm trying to make a horizontal cluster containing two nodes (here visualized as users) in Python module diagrams which uses Graphviz for rendering. But the only way to achieve this is by adding edges ...
Joey Baruch's user avatar
  • 3,938
0 votes
2 answers
68 views

Graphviz cluster vertical align

I've got a graph with clusters. In this example the graph is generated "tilted" to the left. The graph is generated automatically with a strategy: to combine clusters I draw an edge between ...
Artyum's user avatar
  • 159
1 vote
1 answer
56 views

ANN Visualizer ERROR: Layer not supported for visualizing

I am relatively new to machine learning with Python and Tensorflow/Keras. I have now got a model running and would like to visualise my network. For this there is a python library for visualizing ...
AndyEverything's user avatar
1 vote
0 answers
30 views

Visualizing decision trees in a random forest model

I have created a random forest model with a total of 56 estimators. I can visualize each estimator using as follows: import matplotlib.pyplot as plt from sklearn.tree import plot_tree fig = plt....
Dharmini's user avatar
0 votes
0 answers
23 views

Is there any tool can visualize nested type definitions(e.g. c++ struct or protobuf)?

is there any tool can visualize (complicated) nested type definitions? maybe a vs code extension or standalone app? e.g. I got a c++ struct defination (or protobuf, ros msg or other similars) struct A ...
furynerd's user avatar
0 votes
1 answer
28 views

Graphviz edges with ortho lines not aligning with ports

I am trying to create a graphviz block diagram with bidirectional arrows. I have used this graphviz code created from python graphviz package. After exploring the edge options, I liked ortho edges but ...
Sai Pavan's user avatar
1 vote
1 answer
32 views

How to control the position of the nodes

Just two short questions. Let's consider the following code from Graphviz: digraph EXAMPLE { splines="line"; node[shape=circle, fontname="Verdana"]; ranksep=1; SC -> {00, 01} -...
Fco.Jav.Y's user avatar
1 vote
2 answers
47 views

Graphviz strange edge routing

I have a small process graph that I want to lay out nicely. The graph should be aligned to the top and go from left to right. In some cases, the nodes and relationships don't position themselves as ...
Florian Eichin's user avatar
0 votes
1 answer
43 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
-1 votes
1 answer
88 views

Converting a graph from SVG back to DOT

Given a graph in an SVG-file generated using Graphviz, is there a way (converter) to get back the basic description of this graph in terms of the DOT language? (no styling, it would be sufficient to ...
user35603's user avatar
  • 765
0 votes
1 answer
57 views

How to resize an image in GraphViz

I try to resize an image in GraphViz - is too big image="image/concave.PNG" the output: this is my code: import graphviz dot = graphviz.Digraph(comment='Example Graph') dot.node('A', '...
Rob's user avatar
  • 1
0 votes
1 answer
26 views

precedence diagram method with graphviz

I want to draw a precedence diagram with graphviz This is my code in question, that should show a node in the precedence diagram: digraph D { node [shape=record] 8 [ label = < <table ...
Najtim's user avatar
  • 17
0 votes
0 answers
27 views

Parse a dataframe to graphviz nodes tables

I want to use graphviz to visualize tables. In graphviz, a row corresponds to the tags: <TR> </TR> and a column syntax is: <TD></TD> The leftmost column syntax is : <TD>...
Wilcar's user avatar
  • 2,299
0 votes
0 answers
32 views

Windows Graphviz/Pygraphviz

I'm trying to install pygraphviz on windows. I tried running the cmd commands from the documentation but I get the following errors: " WARNING: Implying --no-binary=:all: due to the presence of --...
johnf42's user avatar
1 vote
0 answers
31 views

CMake & GraphViz -> Generate per target, but ignore single Libs there completely

With the option "GRAPHVIZ_GENERATE_PER_TARGET" I can generate dot-files for all my libs. Fine. With the option "GRAPHVIZ_IGNORE_TARGETS" I can ignore some of the targets (like e.g. ...
comdoxx's user avatar
  • 11
0 votes
0 answers
26 views

Image not visible inside of node B

The image inside of node B in this example is not visible. Is there any way to solve this? library(DiagrammeR) my_graphviz <- grViz(" digraph { graph[rankdir = LR] node[shape = ...
sandhya tuptewar's user avatar
0 votes
0 answers
35 views

Specify fixed relative positions for nodes

I want to draw a graph using some engine (neato looks best right now), but constrain the engine to maintain some relative positions between nodes. For example, if my graph has a cycle of length 5 in ...
squirrels's user avatar
  • 303
0 votes
0 answers
33 views

What is the solid black rectangle adjacent to the decision tree?

I adapted this code from https://www.dasca.org/world-of-big-data/article/know-how-to-create-and-visualize-a-decision-tree-with-python. I removed two arguments to the DecisionTreeClassifier constructor,...
nicomp's user avatar
  • 4,268
0 votes
1 answer
51 views

Reduce distance between nodes in circo layout

I have a graph with circo layout which generates some nodes (highlighted on the screenshot) too far from the root. I would like to reduce the distance between highlighted nodes and the root node in ...
user2250152's user avatar
  • 13.2k
0 votes
0 answers
30 views

How to improve graphviz graph with ortho spline mode

Below graph looks weird: lines not connected perfect (it looks good if penwidth = 1) The distribution not symmetric, left side should be a mirror as right side) graph G { graph [splines=ortho, ...
lucky1928's user avatar
  • 8,529
0 votes
0 answers
20 views

Python cant check graphviz

CANNError I have installed all required libraries including graphviz but still can't get png output (it's CANN algorithm for machine learning) help
Nury's user avatar
  • 9
0 votes
1 answer
111 views

OWLViz not displaying diagram centrally

View of Protege/OWLVizI have just installed Protege v5 and opened the Pizza ontology. The OWLViz visualisation is showing at the top left corner. Nothing I seem to do will centralise the OWLViz view ...
ged's user avatar
  • 1
0 votes
1 answer
43 views

Graphviz: using rankdir in subgraph?

I'd like to use TB rankdir for my top-level graph, but LR rankdir within subgraphs. Is this possible? The commented-out rankdir in the subgraph doesn't do anything. digraph G{ graph [compound=...
LearnDude's user avatar
0 votes
1 answer
173 views

How to generate a flow chart using the rules engine in python?

I would like to generate a flow using the rules that I defined in the rules engine. Below is the code from pyknow import * import pydot class Wine(Fact): """Wine characteristics&...
merkle's user avatar
  • 1,517
0 votes
1 answer
55 views

How to lay out nodes so that edges don't overlap in Graphviz

I'm trying to create a fairly simple graph with Graphviz using the dot engine. For the most part my auto-generated code is okay, but I can sometimes run into issues in regard to how Graphviz lays out ...
Kae's user avatar
  • 648
0 votes
1 answer
89 views

R diagrammeR graph

I am using diagrammer for a diagram that should look like the one below but without any success. I have tried the following code library(DiagrammeR) grViz(" digraph boxes_and_circles { graph [...
DSTO's user avatar
  • 265
0 votes
1 answer
102 views

graphViz: How to use fixed positions for nodes from "neato" layout but have pretty curved edges from "dot" layout?

I have this dot code which I use in R's diagrammeR-package: grViz("digraph { graph [layout = neato, overlap = false, outputorder = edgesfirst] node [shape = rectangle] # ...
mkks's user avatar
  • 23
0 votes
1 answer
132 views

Drawing diagram of a multiple / parallel mediation model in R

I want to draw a publication-ready diagram of a parallel mediation model in R. I adapted the Diagrammer + Graphviz Code provided here https://stackoverflow.com/questions/46465752/drawing-simple-...
Mallku's user avatar
  • 26
3 votes
1 answer
30 views

Boost graphviz read all properties

When loading a .dot file I want to read all properties without defining them before. In the code snippet below I don't want to specify to read weight for example. Other datasets have other properties ...
dotdolfin's user avatar
  • 105
0 votes
1 answer
77 views

Diagrams R/GrViz: Is there a way to arrange the labels in an even way along the arrows/edges? Plus, how can I curve the covariance arrow/edge?

I'm actually quite happy with the graphics so far, but the labels along the graphics and the non-curved double arrow don't satisfy me yet. Is there a way to distribute the labels evenly along the ...
HHKK's user avatar
  • 21
0 votes
0 answers
63 views

Change shape of a decision tree with tree.export_graphviz

I want to change my decision tree boxes to circle or diamond with tree.export_graphviz but I can't. Is there any solotion for this? Actully there is no solotion for this problem based on sklearn site. ...
Milad Shafiei's user avatar
0 votes
0 answers
65 views

convert dot graph to networkx graph with same layout and attributes

I am looking for other alternatives to render grpah and save as image from dot file. I can't use Graphviz tool in my work machine as I have restriction. In my search I found networkx python which has ...
param's user avatar
  • 3
0 votes
1 answer
58 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
60 views

How to use loops (i.e., for loop) with diagrams and graphviz in Python

greetings! Please, can you guide how to use a for loop with Python Diagram? Original sample code without any loop is as follow from diagrams import Cluster, Diagram, Edge from diagrams import Diagram ...
Brian Edam's user avatar

1
2 3 4 5
58