graphviz issues
https://gitlab.com/graphviz/graphviz/-/issues
2020-06-27T02:16:44Z
https://gitlab.com/graphviz/graphviz/-/issues/1405
Using Graphviz in Nodejs
2020-06-27T02:16:44Z
Salime Dashti
Using Graphviz in Nodejs
Can someone point me to a document wherein explains how I can draw different type of diagram using Graphviz package within Nodejs ? I can draw a simple diagram using the this code :
`var util = require('util'),
graphviz = require('gra...
Can someone point me to a document wherein explains how I can draw different type of diagram using Graphviz package within Nodejs ? I can draw a simple diagram using the this code :
`var util = require('util'),
graphviz = require('graphviz');
// Create digraph G
var g = graphviz.digraph("G");
// Add node (ID: Hello)
var n1 = g.addNode( "Hello", {"color" : "blue"} );
n1.set( "style", "filled" );
// Add node (ID: World)
g.addNode( "World" );
// Add edge between the two nodes
var e = g.addEdge( n1, "World" );
e.set( "color", "red" );
// Print the dot script
console.log( g.to_dot() );
// Set GraphViz path (if not in your path)
g.setGraphVizPath( "/usr/local/bin" );
// Generate a PNG output
g.output( "png", "test01.png" );`
the question here is: How can I have subgraphs?
https://gitlab.com/graphviz/graphviz/-/issues/1406
Generated svg output doesn't fit into its own bounding box
2022-08-14T08:02:56Z
yuri
Generated svg output doesn't fit into its own bounding box
Dot file:
```
digraph graphname {
"<TOP>" -> "R#3241/1-R#3242/2 (0-7)";
"R#3241/1-R#3242/2 (0-7)" -> "R#3875/3-R#3875/3 (1-7)";
"R#3241/1-R#3242/2 (0-7)" -> "R#1278/2-R#1290/2 (5-7)";
}
```
Command: `dot -Tsvg -Efontsize=18 -Gdpi=...
Dot file:
```
digraph graphname {
"<TOP>" -> "R#3241/1-R#3242/2 (0-7)";
"R#3241/1-R#3242/2 (0-7)" -> "R#3875/3-R#3875/3 (1-7)";
"R#3241/1-R#3242/2 (0-7)" -> "R#1278/2-R#1290/2 (5-7)";
}
```
Command: `dot -Tsvg -Efontsize=18 -Gdpi=96 -Gbgcolor=transparent`
The resulting svg has elements that extend outside of its bounding box.
Both inkscape and QSvgWidget in Qt fail to display it.
Here's how it looks like in inkscape:
![graphviz-svg-bug](/uploads/941024ba48047b8ff421b1270dc597ed/graphviz-svg-bug.png)
https://gitlab.com/graphviz/graphviz/-/issues/1407
'dot' is not recognized as an internal or external command, -- Window 7
2020-06-18T02:13:49Z
bernard
'dot' is not recognized as an internal or external command, -- Window 7
I need some help to resolve the above error msg in the window 7 machine. Below is the error appear when i try to generate the file
Found 4 models.
Inspecting model relations.
1/4 [=======>--------------------] 25%
2/4 [============...
I need some help to resolve the above error msg in the window 7 machine. Below is the error appear when i try to generate the file
Found 4 models.
Inspecting model relations.
1/4 [=======>--------------------] 25%
2/4 [==============>-------------] 50%
3/4 [=====================>------] 75%
4/4 [============================] 100%
In Graph.php line 375:
An error occurred while creating the graph; GraphViz returned: 'dot' is not recognized as an internal or external command,
operable program or batch file.
https://gitlab.com/graphviz/graphviz/-/issues/1408
[DOT] failed at node 0[1] dot: maze.c:315: chkSgraph: Assertion `np->cells[1]...
2022-06-13T01:23:45Z
Jeremy Cohen-Solal
[DOT] failed at node 0[1] dot: maze.c:315: chkSgraph: Assertion `np->cells[1]' failed.
Hello
I have a very simple dot file:
```dot
digraph map {
splines=ortho;
layout="dot";
rankdir="LR";
# Clusters
subgraph "cluster_1" {
node [style=filled];
style=filled;
label="Cluster 1";
...
Hello
I have a very simple dot file:
```dot
digraph map {
splines=ortho;
layout="dot";
rankdir="LR";
# Clusters
subgraph "cluster_1" {
node [style=filled];
style=filled;
label="Cluster 1";
color="pink";
#Nodes
"node1" [fillcolor=red,shape=house]
}
subgraph "cluster_2" {
node [style=filled];
style=filled;
label="Cluster 2";
color="lightblue";
#Nodes:
"node2" [fillcolor=red,shape=box3d]
}
# Edges
"node2" -> "node1" [color=red,arrowhead=dot]
}
```
I use unix dot command: Version = 2.40.1 (20161225.0304)
And I get this error:
```bash
failed at node 0[1]
dot: maze.c:315: chkSgraph: Assertion `np->cells[1]' failed.
Aborted
```
Fun part: when I remove all node1 attributes (line 14) it works...
https://gitlab.com/graphviz/graphviz/-/issues/1409
[sfdp] How can I color edges depending on their length?
2021-05-31T17:49:18Z
Anton Kratz
[sfdp] How can I color edges depending on their length?
How can I color edges depending on their length?
Yifan Hu, the author of sfdp, is doing these visualizations of graphs from the University of Florida Sparse Matrix collection, many examples can be found here: http://yifanhu.net/GALLERY/...
How can I color edges depending on their length?
Yifan Hu, the author of sfdp, is doing these visualizations of graphs from the University of Florida Sparse Matrix collection, many examples can be found here: http://yifanhu.net/GALLERY/GRAPHS/index.html
In these graphs, as you can see in the examples a "simple coloring scheme is used: longer edges are colored with colder colors, and short ones warmer".
I am trying to reproduce this effect. However, I am puzzled how it is achieved because to calculate the appropriate color one needs to know the edge length first (or not?).
--
sfdp - graphviz version 2.40.1 (20161225.0304)
Ubuntu 16.04.
https://gitlab.com/graphviz/graphviz/-/issues/1410
How can I force sfdp to produce an output PDF in square, 1:1 aspect ratio?
2021-05-31T17:41:22Z
Anton Kratz
How can I force sfdp to produce an output PDF in square, 1:1 aspect ratio?
I am trying to get *sfdp* to render an image with square (1:1) aspect ratio. By default, for me, it renders a graph roughly in 16:9 "wide screen" aspect ratio. I am trying:
`sfdp -Goverlap=prism -Tpdf -Gratio=1.0 out.gv`
but that does no...
I am trying to get *sfdp* to render an image with square (1:1) aspect ratio. By default, for me, it renders a graph roughly in 16:9 "wide screen" aspect ratio. I am trying:
`sfdp -Goverlap=prism -Tpdf -Gratio=1.0 out.gv`
but that does not seem to have any effect whatsoever, the resulting PDF is still widescreen and
`sfdp -Goverlap=prism -Tpdf -Gsize="10,10" out.gv`
produces an empty (!) PDF in widescreen format.
How can I force *sfdp* to produce an output PDF in square, 1:1 aspect ratio?
Version: sfdp - graphviz version 2.40.1 (20161225.0304)
https://gitlab.com/graphviz/graphviz/-/issues/1411
syntax error near text who is not present
2020-09-19T03:17:11Z
Louis GASC
syntax error near text who is not present
"syntax error in line n near 'thing'" occur whereas "thing" is not present near line n
It happen when I try to render the following "translation": [TranslationMess.dot](/uploads/062f5c7518c5b4fe33631df096110a89/TranslationMess.dot)
And...
"syntax error in line n near 'thing'" occur whereas "thing" is not present near line n
It happen when I try to render the following "translation": [TranslationMess.dot](/uploads/062f5c7518c5b4fe33631df096110a89/TranslationMess.dot)
And sometimes, when I blindly try to solve this by escaping characters, the error move to another line near another non-existing part of text...
I am using GVEdit 1.02, Graphiz 2.38.0, and Sublime Text 3.1.1 Build 3176
Any help will be greatly appreciated.
https://gitlab.com/graphviz/graphviz/-/issues/1412
Issues with GCC 8, -O3 and -ffast-math
2022-10-13T01:03:22Z
Kasper Daniel Hansen
Issues with GCC 8, -O3 and -ffast-math
I am the maintainer of Rgraphviz which provides an interface to Graphviz inside of the R language. In Rgraphviz we bundle a (reduced) version of Graphviz 2.28.0 which is compiled as a static library, for linking into R.
I have gotten a ...
I am the maintainer of Rgraphviz which provides an interface to Graphviz inside of the R language. In Rgraphviz we bundle a (reduced) version of Graphviz 2.28.0 which is compiled as a static library, for linking into R.
I have gotten a report (from a skilled user) that this compilation fails when the user asks for `-O3` with GCC 8. I have replicated this using GCC 8.2.0 in a Docker container. Specifically, when I load the `Rgraphviz.so` into the R library, it complains that `**_pow_finite` symbol is missing.
The user has tracked this symbol to the glib mathvec library (-lmvec), some details are at
https://sourceware.org/glibc/wiki/libmvec
This library is used when `-ffast-math` is supplied, and this compiler flag is hardcoded into the Graphviz configure script. The documentation suggests that when I use static linking, I need to use `-lmvec -lm`. I am currently exploring this option. An alternative is to remove `-ffast-meth` flag.
So right now, this is just a report. I am still investigating, but if anyone has a reaction to this, feel free to add in. This could be a general issue for Graphviz when GCC 8 gets rolled out more broadly.
If you need to replicate this and have access to docker, the compiler I use is available as gcc when I start docker using
```
$ docker run -it gcc:8.2.0 /bin/bash
```
https://gitlab.com/graphviz/graphviz/-/issues/1413
[dot] Ranking fails when there are too many nodes (??)
2023-02-04T01:52:13Z
Nir Hershko
[dot] Ranking fails when there are too many nodes (??)
I have code that generates a DAG with clusters, and i noticed that in one instance, the generated diagram has an edge that goes backwards. I simplified it as much as I could to the following:
```
digraph "" {
compound=true;
Top1; T...
I have code that generates a DAG with clusters, and i noticed that in one instance, the generated diagram has an edge that goes backwards. I simplified it as much as I could to the following:
```
digraph "" {
compound=true;
Top1; Top2;
Foo;
{rank = same; Top1;Top2;}
subgraph cluster1 {
X1;
X2;
subgraph cluster2 {
TN1;TN2;TN3;TN4;TN5;TN6;TN7,TN8;TN9;
FN;
}
}
Top1 -> TN1;
Top1 -> TN2;
Top1 -> TN3;
Top1 -> TN4;
Top1 -> TN5;
Top1 -> TN6;
Top1 -> TN7;
Top1 -> TN8;
Top1 -> TN9;
Top2 -> Foo;
Foo -> FN;
Foo -> X1;
X1 -> X2;
X2 -> FN;
}
```
where the `Foo -> X1` edge goes up.
For some reason, removing any edge from Top1 fixes it.
Any idea what could it be?
https://gitlab.com/graphviz/graphviz/-/issues/1414
Format: "png" not recognized.
2020-06-03T15:17:49Z
Anton Kratz
Format: "png" not recognized.
# tl;dr
A fresh install of graphviz cannot render PDF or PNG.
# Full description:
On a fresh Xubuntu 16.04 install, I install graphviz like this (not using the one from the repo b/c the one from the repo is outdated and does not have a...
# tl;dr
A fresh install of graphviz cannot render PDF or PNG.
# Full description:
On a fresh Xubuntu 16.04 install, I install graphviz like this (not using the one from the repo b/c the one from the repo is outdated and does not have a working sfdp):
```bash
wget https://graphviz.gitlab.io/pub/graphviz/stable/SOURCES/graphviz.tar.gz
gunzip graphviz.tar.gz
tar xvf graphviz.tar
sudo apt install -y libgts-dev
sudo pkg-config --libs gts
sudo pkg-config --cflags gts
cd graphviz-2.40.1/
sudo ./configure --with-gts --prefix ~
sudo make
sudo make install
```
However when I try to render s/th I get:
```bash
kratz@kratz-VirtualBox:~/tmp$ time sfdp -Goverlap=prism -Tpng nelout.gv > nelout.png
Format: "png" not recognized. Use one of: canon cmap cmapx cmapx_np dot dot_json eps fig gv imap imap_np ismap json json0 mp pic plain plain-ext pov ps ps2 svg svgz tk vml vmlz xdot xdot1.2 xdot1.4 xdot_json
```
Same problem for PDF!
https://gitlab.com/graphviz/graphviz/-/issues/1415
spline = ortho produces unexpected output with ports
2023-06-20T01:50:40Z
Pekka Pihlajasaari
spline = ortho produces unexpected output with ports
The appended graph draws as expected with the dot renderer until the ':n' port is added. Then, edges are not clipped to the boundary of the destination node. If the 'splines = ortho' specification is removed, then the rendering returns t...
The appended graph draws as expected with the dot renderer until the ':n' port is added. Then, edges are not clipped to the boundary of the destination node. If the 'splines = ortho' specification is removed, then the rendering returns to the expected result.
I have seen the ports are somewhat deprecated, but don't have good alternatives in all cases. The output is attached.
```
digraph {
graph [splines = ortho];
A;
B;
C;
{ A; B;C; } -> D:n;
}
```
--
![Ortho](/uploads/24c455d982399403f48823049599154b/Ortho.png)
https://gitlab.com/graphviz/graphviz/-/issues/1416
Generate multiple graph in png format with graphviz and C++ without system co...
2020-07-16T02:24:06Z
le froz
Generate multiple graph in png format with graphviz and C++ without system command
am trying to generate graphs in picture format from graphviz in a C++ application.
The way I proceed is the following. From boost library, I create an adjancy_list:
```
struct VertexP { std::string tag; std::string shape;std::string st...
am trying to generate graphs in picture format from graphviz in a C++ application.
The way I proceed is the following. From boost library, I create an adjancy_list:
```
struct VertexP { std::string tag; std::string shape;std::string style; };
struct EdgeP { std::string symbol; std::string color; };
struct GraphP { };
typedef adjacency_list<vecS, vecS, directedS, VertexP, EdgeP, GraphP> Graph;
```
I have a function which build my graph recursively from external data
Graph addnode_progeny(data, Graph );
Then, I have a function which generate the dot file of this graph.
```
void printGraphDot(Graph g, std::string file_path){
std::ofstream dot_file(file_path+".dot");
dynamic_properties dp;
dp.property("node_id", get(&VertexP::tag, g));
dp.property("label", get(&VertexP::tag, g));
dp.property("shape", get(&VertexP::shape, g));
dp.property("style", get(&VertexP::style, g));
dp.property("label", get(&EdgeP::symbol, g));
dp.property("color", get(&EdgeP::color, g));
dp.property("rankdir", boost::make_constant_property<Graph*>(std::string("TB")));
write_graphviz_dp(dot_file, g, dp);
}
```
Until this point, everything goes fine.
Now, I want to transform this dot file into png file. I do not want to pass by a system("dot -Tpng input -o output") command as, I dont want to oblige the user to have graphviz installed.
I have found a first idea in the following post: Generate image of GraphViz graph given dot text c++
I have adapted the code. I have added it to the previous function and it works when I need to generate ONE graph.
The new function is:
```
void printGraphDot(Graph g, std::string file_path){
std::ofstream dot_file(file_path+".dot");
dynamic_properties dp;
dp.property("node_id", get(&VertexP::tag, g));
dp.property("label", get(&VertexP::tag, g));
dp.property("shape", get(&VertexP::shape, g));
dp.property("style", get(&VertexP::style, g));
dp.property("label", get(&EdgeP::symbol, g));
dp.property("color", get(&EdgeP::color, g));
dp.property("rankdir", boost::make_constant_property<Graph*>(std::string("TB")));
write_graphviz_dp(dot_file, g, dp);
std::string o_arg = "-o" +file_path+".png";
std::string i_arg = file_path+".dot";
char* args[] = {const_cast<char*>("dot"),
const_cast<char*>("-Tpng"),
const_cast<char*>(i_arg.c_str()),
const_cast<char*>(o_arg.c_str()) };
const int argc = sizeof(args)/sizeof(args[0]);
Agraph_t *h, *prev = NULL;
GVC_t *gvc;
gvc = gvContext();
gvParseArgs(gvc, argc, args);
while ((h = gvNextInputGraph(gvc)))
{
if (prev)
{
gvFreeLayout(gvc, prev);
agclose(prev);
}
gvLayoutJobs(gvc, h);
gvRenderJobs(gvc, h);
prev = h;
}
}
```
However, for multiple graph, if I call again this function, it does not work and I have a segmentation error. In fact, it is written that we can use only one GVC_t in an application, in the following documentation, page 25: http://www.graphviz.org/pdf/libguide.pdf.
So in the following case, it stops the program with segmentation fault:
```
printGraphDot( g1, file_path1);
printGraphDot( g2, file_path2);
```
Is there another way to generate png graph from dot file inside a C++ application without using the command?
Thank you very much for your help. Cheers
https://gitlab.com/graphviz/graphviz/-/issues/1417
How to seperate Splines from each other and how to tell it to sort Nodes:
2023-02-03T01:17:00Z
Raphael Specht
How to seperate Splines from each other and how to tell it to sort Nodes:
I try to do a Network Map with gvedit / dot and in a small version it looks good. But now i filled it with some more informations and now it looks messy.
![netzplan_Test1](/uploads/a77db36d40c03b8e2f35fde0abfe7c3c/netzplan_Test1.png)
L...
I try to do a Network Map with gvedit / dot and in a small version it looks good. But now i filled it with some more informations and now it looks messy.
![netzplan_Test1](/uploads/a77db36d40c03b8e2f35fde0abfe7c3c/netzplan_Test1.png)
Let me explan:
- How can i tell the engine to move Phone down to the clients? If i put a minlen into this line pulls the small Switch Node upwards. <--- edit2: this is also done with a invisible arrow from Client4 to Client5.
- The different height of the Clients looks good and is done with the minlen.
- Why walks the Connection Switch:g1 -- SwitchBuero:1 arround the Nodes NAS, VoIP1 and Homeserver?
- Why walks the Connection Switch:g1 -- SwitchBuero:1 so close to SwitchBuero's edge?
- How can i seperate the Splins? Under Switch it looks messy with those less connections.
- Can i tell the Engine walks out the nodes with ports in a 90° Angle - how can i set this lengh with 90° a little bit longer? And is it possible to walk also in 90° Angle out of the other Nodes? <--- edit: this is done, i add the port direction to the single Nodes.
edit:
![netzplan_Test1](/uploads/c01b8b072f6ee1808ea302e3c53ccc00/netzplan_Test1.png)
[netzplan_Test1.gv](/uploads/415d0dc99308f2a48d2fa4a2c872cc69/netzplan_Test1.gv)
I hope you can help me :)
I like this tool so much and came back to it. Visio seems to do this Job better but it isn't :)
https://gitlab.com/graphviz/graphviz/-/issues/1418
bezier_bb: Assertion `bz.size > 0' failed.
2020-11-14T22:40:55Z
LE GARREC Vincent
bezier_bb: Assertion `bz.size > 0' failed.
Dear,
By fuzzing, I found that this file makes dot (from git 3a83759e870904f0fb22de0b4e31cc86938e8c89) crash.
[crash.dot](/uploads/a61c170ef6556a08991709f7bae50c47/crash.dot)
gdb backtrace:
```
#0 __GI_raise (sig=sig@entry=6) at ../s...
Dear,
By fuzzing, I found that this file makes dot (from git 3a83759e870904f0fb22de0b4e31cc86938e8c89) crash.
[crash.dot](/uploads/a61c170ef6556a08991709f7bae50c47/crash.dot)
gdb backtrace:
```
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1 0x00007ffff6dfb1f1 in __GI_abort () at abort.c:79
#2 0x00007ffff6df1288 in __assert_fail_base (
fmt=0x7ffff6f59218 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n",
assertion=assertion@entry=0x7ffff7fd79c3 "bz.size > 0",
file=file@entry=0x7ffff7fd79b6 "emit.c", line=line@entry=3970,
function=function@entry=0x7ffff7fd7f70 <__PRETTY_FUNCTION__.9500> "bezier_bb
#3 0x00007ffff6df1306 in __GI___assert_fail (
assertion=assertion@entry=0x7ffff7fd79c3 "bz.size > 0",
file=file@entry=0x7ffff7fd79b6 "emit.c", line=line@entry=3970,
function=function@entry=0x7ffff7fd7f70 <__PRETTY_FUNCTION__.9500> "bezier_bb
#4 0x00007ffff7f74403 in bezier_bb (bz=...) at emit.c:3970
#5 0x00007ffff7f9a7bf in init_splines_bb (spl=0x555555833860) at emit.c:3998
#6 init_bb_edge (e=0x555555590a90) at emit.c:4023
#7 init_bb_node (n=0x555555589fa0, g=0x55555557c6e0) at emit.c:4040
#8 init_bb (g=0x55555557c6e0) at emit.c:4056
#9 gvRenderJobs (gvc=0x5555555599b0, g=0x55555557c6e0) at emit.c:4110
#10 0x00005555555557ce in main (argc=2, argv=0x7fffffffd7f8) at dot.c:133
```
valgrind:
```
==27903==
==27903== Process terminating with default action of signal 6 (SIGABRT): dumping
==27903== at 0x56BA9CA: raise (raise.c:51)
==27903== by 0x56BC1F0: abort (abort.c:79)
==27903== by 0x56B2287: __assert_fail_base (assert.c:92)
==27903== by 0x56B2305: __assert_fail (assert.c:101)
==27903== by 0x4184402: ??? (in /home/legarrec/info/programmation/graphviz/gr
==27903== by 0x41AA7BE: ??? (in /home/legarrec/info/programmation/graphviz/gr
==27903== by 0x1097CD: ??? (in /home/legarrec/info/programmation/graphviz/gra
==27903== by 0x56A5AFE: (below main) (libc-start.c:308)
==27903==
```
https://gitlab.com/graphviz/graphviz/-/issues/1419
Create a diagram in several languages
2020-07-19T03:59:08Z
Cecil Westerhof
Create a diagram in several languages
I have the following code to generate a diagram with -Kfdp.
`
digraph habitLoop {
bgcolor = steelblue
edge [penwidth = 4.0 ]
node [fontcolor = white, fontsize = 60, style = filled]
spur [pos = "4,4!" color = red]
...
I have the following code to generate a diagram with -Kfdp.
`
digraph habitLoop {
bgcolor = steelblue
edge [penwidth = 4.0 ]
node [fontcolor = white, fontsize = 60, style = filled]
spur [pos = "4,4!" color = red]
habit [pos = "7,1!" color = darkgreen]
reward [pos = "1,1!" color = blue]
spur:e -> habit:n
habit:w -> reward:e
reward:n -> spur:w
copyright [
pos = "4,.75!"
color = steelblue,
fontcolor = black,
fontsize = 14,
label = "© Cecil Westerhof\nTimeManagement@Decebal.nl",
shape = plaintext
]
spur [label = "Spur"]
habit [label = "Habit"]
reward [label = "Reward"]
}
`
But I like to generate it in Dutch also. So I also have:
`digraph habitLoop {
bgcolor = steelblue
edge [penwidth = 4.0 ]
node [fontcolor = white, fontsize = 60, style = filled]
spur [pos = "4,4!" color = red]
habit [pos = "7,1!" color = darkgreen]
reward [pos = "1,1!" color = blue]
spur:e -> habit:n
habit:w -> reward:e
reward:n -> spur:w
copyright [
pos = "4,.75!"
color = steelblue,
fontcolor = black,
fontsize = 14,
label = "© Cecil Westerhof\nTimeManagement@Decebal.nl",
shape = plaintext
]
spur [label = "Prikkel"]
habit [label = "Gewoonte"]
reward [label = "Beloning"]
}
`
But when I change something I now have to change it at two places. That is an accident waiting to happen. Is there a way to do this in a DRY way?
By the way: what am I doing wrong? Because the preview does not display the code correctly.
https://gitlab.com/graphviz/graphviz/-/issues/1420
A Big X Through Spur
2023-01-03T23:30:39Z
Cecil Westerhof
A Big X Through Spur
I have the following code:
`digraph habitLoop {
bgcolor = steelblue
edge [penwidth = 4.0 ]
node [fontcolor = white, fontsize = 60, style = filled]
spur [pos = "4,4!" color = red]
habit [pos = "7,1!" color = darkg...
I have the following code:
`digraph habitLoop {
bgcolor = steelblue
edge [penwidth = 4.0 ]
node [fontcolor = white, fontsize = 60, style = filled]
spur [pos = "4,4!" color = red]
habit [pos = "7,1!" color = darkgreen]
reward [pos = "1,1!" color = blue]
spur:e -> habit:n
habit:w -> reward:e
reward:n -> spur:w
copyright [
pos = "4,.75!"
color = steelblue,
fontcolor = black,
fontsize = 14,
label = "© Cecil Westerhof\nTimeManagement@Decebal.nl",
shape = plaintext
]
spur [label = "Spur"]
habit [label = "Habit"]
reward [label = "Reward"]
}
`
But I want to generate a picture where the Spur is broken, so I want to put a big 'X' over it. How would I do that?
https://gitlab.com/graphviz/graphviz/-/issues/1421
Cannot compile latest release
2020-07-03T21:06:48Z
Yushan ZHANG
zhangysh1995@gmail.com
Cannot compile latest release
````
$ ./configure --prefix=/home/zhangys/local
$ make -j10
````
````
....
BEGIN failed--compilation aborted.
gv_perl.cpp:743:20: fatal error: EXTERN.h: No such file or directory
#include "EXTERN.h"
^
compilation te...
````
$ ./configure --prefix=/home/zhangys/local
$ make -j10
````
````
....
BEGIN failed--compilation aborted.
gv_perl.cpp:743:20: fatal error: EXTERN.h: No such file or directory
#include "EXTERN.h"
^
compilation terminated.
....
````
https://gitlab.com/graphviz/graphviz/-/issues/1422
sfio does compile time benchmarknig
2020-09-19T00:55:38Z
Bernhard M. Wiedemann
sfio does compile time benchmarknig
graphviz-2.40.1/lib/sfio/features/sfio does benchmarking at compile time to decide which version of a function to use.
It does this for 3 functions: memchr memccpy mmap
This creates variations in build results across the openSUSE build...
graphviz-2.40.1/lib/sfio/features/sfio does benchmarking at compile time to decide which version of a function to use.
It does this for 3 functions: memchr memccpy mmap
This creates variations in build results across the openSUSE build workers that vary in type of system and parallel build load.
See https://reproducible-builds.org/ for why this matters.
Would be nice to have a cleaner way of disabling that than the attached patch
[reproducible.patch](/uploads/f172041f98f03b7f2eb2d3901524b3f8/reproducible.patch)
https://gitlab.com/graphviz/graphviz/-/issues/1423
sfpkrd.c:61:21: error: storage size of ‘pbuf’ isn’t known
2020-07-19T03:55:01Z
janson91
sfpkrd.c:61:21: error: storage size of ‘pbuf’ isn’t known
when I install graphviz-2.40.1 from source I get this error when make
CC sfpkrd.lo
sfpkrd.c: In function ‘sfpkrd’:
sfpkrd.c:61:21: error: storage size of ‘pbuf’ isn’t known
struct strpeek pbuf;
^
sfpkr...
when I install graphviz-2.40.1 from source I get this error when make
CC sfpkrd.lo
sfpkrd.c: In function ‘sfpkrd’:
sfpkrd.c:61:21: error: storage size of ‘pbuf’ isn’t known
struct strpeek pbuf;
^
sfpkrd.c:70:25: error: ‘I_PEEK’ undeclared (first use in this function)
if ((r = ioctl(fd, I_PEEK, &pbuf)) < 0) {
sfpkrd.c:70:25: note: each undeclared identifier is reported only once for each function it appears in
sfpkrd.c:61:21: warning: unused variable ‘pbuf’ [-Wunused-variable]
struct strpeek pbuf;
^
gcc version 4.8.5
https://gitlab.com/graphviz/graphviz/-/issues/1424
Errors when building graphviz with brew
2020-07-11T17:36:15Z
janson91
Errors when building graphviz with brew
hi
I am trying to install graphviz with the command:
brew isntall graphviz
Here's the error I get:
==> ./configure --prefix=/home/wjs/.linuxbrew/Cellar/graphviz/2.40.1 --without-qt --with-quartz --disable-php --disable-swig --without-p...
hi
I am trying to install graphviz with the command:
brew isntall graphviz
Here's the error I get:
==> ./configure --prefix=/home/wjs/.linuxbrew/Cellar/graphviz/2.40.1 --without-qt --with-quartz --disable-php --disable-swig --without-pangocairo --without-freetype2 --without-x --without-rsvg
==> make install
> Last 15 lines from /home/wangjingsong/.cache/Homebrew/Logs/graphviz/02.make:
> malloc.c:331:15: error: return type is an incomplete type
> struct mstats mstats(void)
> ^
> malloc.c: In function 'mstats':
> malloc.c:334:19: error: storage size of 'ms' isn't known
> struct mstats ms;
> ^
> make[3]: *** [malloc.lo] Error 1
> make[3]: *** Waiting for unfinished jobs....
> make[3]: Leaving directory `/tmp/graphviz-20180912-12028-15brl3t/graphviz-2.40.1/lib/vmalloc'
> make[2]: *** [install-recursive] Error 1
> make[2]: Leaving directory `/tmp/graphviz-20180912-12028-15brl3t/graphviz-2.40.1/lib'
> make[1]: *** [install-recursive] Error 1
> make[1]: Leaving directory `/tmp/graphviz-20180912-12028-15brl3t/graphviz-2.40.1'
> make: *** [install] Error 2