Move node closer to another node

See pic I want the red node to come closer to the blue node. Can I achieve this? I use {rank=same; "Occlusion"->"Occlusion Ct" } to make the blue and the red to come on the same level in the graph. Thanks! Smiley face

AttachmentSize
Forum question pic.png67.66 KB
graph.txt7.18 KB

Can you post the input graph?

Can you post the input graph? Thanks.

Spam filter

I tried but cant because of spam filter.

"Your submission has triggered the spam filter and will not be accepted."

I sent it to you.

Thanks

Sorry. It is probably just

Sorry. It is probably just looking at some suffix on your file and assumes it is bad. If you can't just cut and paste, try changing the suffix to .txt or something benign. Or submit the problem as a bug report. That way, there is a better chance I'll get all of the information at once.

I added the graph code as an

I added the graph code as an attachement

It turns out this is a bug.

It turns out this is a bug. I have fixed it in our source, but it is a one-liner, so if you want to patch your code and rebuild, here is the change:

diff --git a/lib/dotgen/position.c b/lib/dotgen/position.c
index 60a81b1..b5af9ce 100644
--- a/lib/dotgen/position.c
+++ b/lib/dotgen/position.c
@@ -305,6 +305,7 @@ make_LR_constraints(graph_t * g)
                    if (m0 > USHRT_MAX)
                        m0 = largeMinlen (m0);
                    ED_minlen(e0) = MAX(ED_minlen(e0), m0);
+                   ED_weight(e0) = MAX(ED_weight(e0), ED_weight(e));
                }
                else if (!ED_label(e)) {
                    /* unlabeled flat edge between non-neighbors

 

"I have fixed it in our

"I have fixed it in our source"

Thanks for the fix!

Id prefer not to have to build it. Do you have a released version available with this fix.

Thanks

I'm not sure what system you

I'm not sure what system you are on or where you got your current version, but any Graphviz package 2.37 on

  http://www.graphviz.org/Download..php

will have the fix in it.

Thanks erg

Thanks erg

Recent comments