Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

1 votes
2 answers
121 views
How to filter paths through a digraph by whether any of the node names contain a keyword?
[`gvpr`][1] can filter graphs, but its language is obtuse and I could not find a lot of examples. Is there some way to traverse all possible paths from all root nodes (one in my case, if that makes any difference) to all terminator nodes, then only keep the nodes which either contain some string or...
gvpr can filter graphs, but its language is obtuse and I could not find a lot of examples. Is there some way to traverse all possible paths from all root nodes (one in my case, if that makes any difference) to all terminator nodes, then only keep the nodes which either contain some string or are connected (directly or indirectly) to a node which contain that string? Example input:
digraph G {
    a1 -> b -> c -> d
    a2 -> b2 -> a2 -> c
    a3 -> d
}
original graph Example output after filtering for "a1":
digraph G {
    a1 -> b -> c -> d
}
after filtering for a1 After filtering for "c":
digraph G {
    a1 -> b -> c -> d
    a2 -> b2 -> a2 -> c
}
after filtering for c
l0b0 (53368 rep)
Jul 17, 2025, 09:16 AM • Last activity: Jul 19, 2025, 12:44 AM
1 votes
1 answers
241 views
How to install a recent version of graphviz usable with RHEL 8?
I want to install a recent version of graphviz (e.g. Graphviz version 12) on a RHEL 7 system. When I [look at RPMfind][1] I can only see rpms for Fedora. Where do i find a RPM for RHEL 7? [1]: https://rpmfind.net/linux/rpm2html/search.php?query=graphviz
I want to install a recent version of graphviz (e.g. Graphviz version 12) on a RHEL 7 system. When I look at RPMfind I can only see rpms for Fedora. Where do i find a RPM for RHEL 7?
halloleo (649 rep)
Oct 26, 2024, 02:27 AM • Last activity: Oct 28, 2024, 11:35 PM
4 votes
1 answers
1671 views
How to set default font, or default style in Graphviz's Dot language
It seems, every tutorial every example scripts explicitly states what font should be used for each node/arrow. Instead, I'd like to specify default font which all arrows and nodes use only once (may at the beginning of file, or maybe separate style file sheets) [link][1] [1]: https://www.graphviz.or...
It seems, every tutorial every example scripts explicitly states what font should be used for each node/arrow. Instead, I'd like to specify default font which all arrows and nodes use only once (may at the beginning of file, or maybe separate style file sheets) link
Garid Z. (552 rep)
Sep 24, 2021, 08:22 PM • Last activity: Sep 25, 2021, 07:35 AM
11 votes
1 answers
6642 views
Visualizing dependencies coded up in makefiles as a graph
Closely related to https://unix.stackexchange.com/questions/283478/how-to-display-dependencies-given-in-a-makefile-as-a-tree But the answers given there is not satisfactory (i.e. do not work). Is there a tool to visualize the Directed Acylic Graphs (DAGs) coded up in standard Makefiles? eg, a shell-...
Closely related to https://unix.stackexchange.com/questions/283478/how-to-display-dependencies-given-in-a-makefile-as-a-tree But the answers given there is not satisfactory (i.e. do not work). Is there a tool to visualize the Directed Acylic Graphs (DAGs) coded up in standard Makefiles? eg, a shell-script for post-processing through Unix pipes can be an acceptable solution as well (maybe there is a pandoc filter to convert MakeFiles to graphviz or LaTeX). I don't strictly need a tool that directly typesets this graphical visualisation? Just a common file-format translation of the makefile to a graph-viz file or something similar would suffice.
Dr Krishnakumar Gopalakrishnan (425 rep)
Oct 25, 2017, 04:43 PM • Last activity: Apr 6, 2021, 05:28 PM
0 votes
0 answers
160 views
Seemingly correct Graphviz source produces error when rendering
I've got into a peculiar situation. I've installed two versions of Graphviz in two environments: `2.44.1` on Windows, and `2.40.1` on Debian. The graph I've generated produces identical sources on both, but its rendering fails on Debian with `Syntax error on line 37 near [`. To my knowledge, I confi...
I've got into a peculiar situation. I've installed two versions of Graphviz in two environments: 2.44.1 on Windows, and 2.40.1 on Debian. The graph I've generated produces identical sources on both, but its rendering fails on Debian with Syntax error on line 37 near . To my knowledge, I configured the Linux environment as it should, installing the package and running sudo dot -c. So I thought two things could be at fault: either the file is not right, or it's a bug that has been fixed in a newer release. I cannot verify the second hypothesis however, because the [changelog is *extremely* terse after the latest updates. But I *could* test the first, at least indirectly. The Debian environment is on my "Windows Subsystem for Linux", so I was able to copy the file to my Windows file system to verify that the same exact file can be rendered with the newer version. So that points to it being possibly a version issue. Additionally, the file does not contain any stray special characters, as verified by a manual check with Notepad++. I tried two things: 1) looking for an updated package - it didn't exist in Python's Conda or Debian backports (and that's the extent of my knowledge), and 2) installing from source . But I have very little experience in building source packages on Linux, so I failed. The png format was not recognised, which from what I've gathered is some dependency issue. Some of the libraries listed in requirements (like zlib) are not in the Debian repositories either, so I was once again at a loss. I know this question isn't exactly a perfect fit for Stack Exchange, but I think I've extensively demonstrated what I've tried when debugging this issue, still getting nowhere. I wouldn't want to bother the maintainers just yet, so I decided to try my luck here. I'd very much appreciate an answer to either of the questions below. - Are there any other straight-forward ways of installing newer versions of packages in general, or specifically the Graphviz package? - Could anybody else with a Graphviz environment verify that the following source file produces either an error like I described, or a successful compilation? It was run with dot -Kdot -Tpng -O source.
digraph  {
__author__ [fillcolor="#E5E5E5", label=" __author__ \nV:22", shape=box, style=filled];
__version__ [fillcolor="#E5E5E5", label="__version__ \nV:23", shape=box, style=filled];
__license__ [fillcolor="#E5E5E5", label="__license__ \nV:24", shape=box, style=filled];
PY3 [fillcolor="#E4FFE4", label="    PY3     \nV:27", shape=box, style=filled];
GRAPH_ATTRIBUTES [fillcolor="#E4FFE4", label="GRAPH_ATTRIBUTES\nV:34", shape=box, style=filled];
EDGE_ATTRIBUTES [fillcolor="#E4FFE4", label="EDGE_ATTRIBUTES\nV:52", shape=box, style=filled];
NODE_ATTRIBUTES [fillcolor="#E4FFE4", label="NODE_ATTRIBUTES\nV:66", shape=box, style=filled];
CLUSTER_ATTRIBUTES [fillcolor="#E4FFE4", label="CLUSTER_ATTRIBUTES\nV:77", shape=box, style=filled];
DEFAULT_PROGRAMS [fillcolor="#E4FFE4", label="DEFAULT_PROGRAMS\nV:83", shape=box, style=filled];
is_windows [fillcolor="#E4FFE4", label=" is_windows \nF:93", shape=ellipse, style=filled];
is_anaconda [fillcolor="#E4FFE4", label="is_anaconda \nF:98", shape=ellipse, style=filled];
get_executable_extension [fillcolor="#FFFFFF", label="get_executable_extension\nF:104", shape=ellipse, style=filled];
call_graphviz [fillcolor="#FFFFFF", label="call_graphviz\nF:112", shape=ellipse, style=filled];
frozendict [fillcolor="#FFFFFF", label=" frozendict \nC:152", shape=parallelogram, style=filled];
dot_keywords [fillcolor="#E4FFE4", label="dot_keywords\nV:202", shape=box, style=filled];
id_re_alpha_nums [fillcolor="#E4FFE4", label="id_re_alpha_nums\nV:204", shape=box, style=filled];
id_re_alpha_nums_with_ports [fillcolor="#E4FFE4", label="id_re_alpha_nums_with_ports\nV:205", shape=box, style=filled];
id_re_num [fillcolor="#E4FFE4", label=" id_re_num  \nV:207", shape=box, style=filled];
id_re_with_port [fillcolor="#E4FFE4", label="id_re_with_port\nV:208", shape=box, style=filled];
id_re_dbl_quoted [fillcolor="#E4FFE4", label="id_re_dbl_quoted\nV:209", shape=box, style=filled];
id_re_html [fillcolor="#E4FFE4", label=" id_re_html \nV:210", shape=box, style=filled];
needs_quotes [fillcolor="#FFE0E0", label="needs_quotes\nF:213", shape=ellipse, style=filled];
quote_if_necessary [fillcolor="#FFE0E0", label="quote_if_necessary\nF:249", shape=ellipse, style=filled];
graph_from_dot_data [fillcolor="#E4FFE4", label="graph_from_dot_data\nF:275", shape=ellipse, style=filled];
graph_from_dot_file [fillcolor="#BBEEFF", label="graph_from_dot_file\nF:287", shape=ellipse, style=filled];
graph_from_edges [fillcolor="#BBEEFF", label="graph_from_edges\nF:306", shape=ellipse, style=filled];
Dot [fillcolor="#FFE0E0", label="    Dot     \nC:1694", shape=parallelogram, style=filled];
Edge [fillcolor="#FFA0A0", label="    Edge    \nC:692", shape=parallelogram, style=filled];
graph_from_adjacency_matrix [fillcolor="#BBEEFF", label="graph_from_adjacency_matrix\nF:341", shape=ellipse, style=filled];
graph_from_incidence_matrix [fillcolor="#BBEEFF", label="graph_from_incidence_matrix\nF:378", shape=ellipse, style=filled];
Common [fillcolor="#E4FFE4", label="   Common   \nC:415", shape=parallelogram, style=filled];
Error [fillcolor="#E4FFE4", label="   Error    \nC:549", shape=parallelogram, style=filled];
InvocationException [fillcolor="#E5E5E5", label="InvocationException\nC:558", shape=parallelogram, style=filled];
Node [fillcolor="#FFE0E0", label="    Node    \nC:568", shape=parallelogram, style=filled];
Cluster [fillcolor="#FFE0E0", label="  Cluster   \nC:1639", shape=parallelogram, style=filled];
Subgraph [fillcolor="#FFFFFF", label="  Subgraph  \nC:1585", shape=parallelogram, style=filled];
Graph [fillcolor="#FFE0E0", label="   Graph    \nC:887", shape=parallelogram, style=filled];
get_executable_extension -> is_windows;
get_executable_extension -> is_anaconda;
call_graphviz -> get_executable_extension;
call_graphviz -> DEFAULT_PROGRAMS;
frozendict -> frozendict;
needs_quotes -> id_re_dbl_quoted;
needs_quotes -> needs_quotes;
needs_quotes -> dot_keywords;
needs_quotes -> id_re_alpha_nums_with_ports;
needs_quotes -> id_re_num;
needs_quotes -> id_re_alpha_nums;
needs_quotes -> id_re_html;
needs_quotes -> id_re_with_port;
quote_if_necessary -> needs_quotes;
graph_from_dot_file -> PY3;
graph_from_dot_file -> graph_from_dot_data;
graph_from_edges -> Dot;
graph_from_edges -> Edge;
Dot -> PY3;
Dot -> Graph;
Dot -> call_graphviz;
Edge -> quote_if_necessary;
Edge -> Cluster;
Edge -> Edge;
Edge -> PY3;
Edge -> Common;
Edge -> Subgraph;
Edge -> Node;
Edge -> frozendict;
Edge -> Error;
Edge -> EDGE_ATTRIBUTES;
graph_from_adjacency_matrix -> Dot;
graph_from_adjacency_matrix -> Edge;
graph_from_incidence_matrix -> Dot;
graph_from_incidence_matrix -> Edge;
Node -> quote_if_necessary;
Node -> Common;
Node -> NODE_ATTRIBUTES;
Cluster -> quote_if_necessary;
Cluster -> CLUSTER_ATTRIBUTES;
Cluster -> Graph;
Subgraph -> Graph;
Graph -> quote_if_necessary;
Graph -> Edge;
Graph -> Cluster;
Graph -> Common;
Graph -> Node;
Graph -> GRAPH_ATTRIBUTES;
Graph -> Error;
Graph -> Graph;
Graph -> Subgraph;
}
Felix (123 rep)
Jan 22, 2021, 02:29 PM
0 votes
1 answers
912 views
How to Set the Newer Version of dot (a tool of graphviz)?
I wanted to use doxygen 1.8.5 on CentOS 7 which uses dot to produce graphs of source codes. dot is a tool of graphviz package. I downloaded [graphviz 2.42][1] and installed it by going through the following steps: (1) `./configure` (2) `make`, and (3) `make install`. I, then, decided to use the late...
I wanted to use doxygen 1.8.5 on CentOS 7 which uses dot to produce graphs of source codes. dot is a tool of graphviz package. I downloaded graphviz 2.42 and installed it by going through the following steps: (1) ./configure (2) make, and (3) make install. I, then, decided to use the latest version of graphviz (version 2.44) to prevent some bugs and issues of the older version 2.42. To do this, I tried to uninstall the graphviz 2.42 using the command yum autoremove graphviz. Then, I used this installation guide to install graphviz 2.44. Graphviz 2.44 is successfully installed but the version of dot is still 2.42. I checked it with dot -V. Why the version of the dot is still 2.42 while graphviz 2.44 is installed? How can I change the version of dot to the most recently installed one? Thanks
Arghavan Mohammadhassani (121 rep)
Dec 5, 2020, 06:00 PM • Last activity: Dec 5, 2020, 06:46 PM
5 votes
1 answers
2359 views
How do I add color to a graphviz graph node?
Here is the code for the graph I currently have: graph Budget { Country_Budget -- Profit_and_Loss_Account [type=s]; Country_Budget -- Balance_Sheet [type=s]; Profit_and_Loss_Account -- Income [type=s]; Profit_and_Loss_Account -- Expenditure [type=s]; Income -- Revenue_Income [type=s]; Income -- Capi...
Here is the code for the graph I currently have: graph Budget { Country_Budget -- Profit_and_Loss_Account [type=s]; Country_Budget -- Balance_Sheet [type=s]; Profit_and_Loss_Account -- Income [type=s]; Profit_and_Loss_Account -- Expenditure [type=s]; Income -- Revenue_Income [type=s]; Income -- Capital_Income [type=s]; Expenditure -- Revenue_Expenditure [type=s]; Expenditure -- Capital_Expenditure [type=s]; Balance_Sheet -- Assets [type=s]; Balance_Sheet -- Liabilities [type=s]; } and here is the rendering when using dotty tool - rough sketch of country budget While it gives the details and the structure, does anybody know a way to make it more colorful? Running graphviz 2.38.0-16 on Debian.
shirish (12954 rep)
Jan 23, 2017, 06:40 PM • Last activity: Aug 10, 2020, 03:16 AM
1 votes
1 answers
111 views
Debian editor with syntax highlight for DOT language
I'm looking for a Debian editor with syntax highlight for the DOT language.
I'm looking for a Debian editor with syntax highlight for the DOT language.
GattoVizzato (27 rep)
Aug 28, 2019, 05:48 PM • Last activity: Aug 28, 2019, 06:06 PM
Showing page 1 of 8 total questions