Comments (3)
If you try the fdpcplus example (http://www.graphviz.org/Gallery/undirected/fdpclust.html) you will see that it does not work either. As indicated on the example's page, "fdp is being actively worked on, so the probability of hitting a bug is higher than with neato". I think, this is a fdp bug. I'll ask on the graphviz mailing list.
from ruby-graphviz.
Hi,
In the meantime, you can use "compound", "lhead" and "ltail" attributes, to clip the edge to the boundary of a cluster. Here is an example :
g = GraphViz::new( "G", :type => "graph" )
g[:compound] = true
g[:rankdir] = "LR"
c0 = g.add_graph( "cluster0", "label" => "cluster #1" )
a0 = c0.add_nodes( "a0" )
c1 = g.add_graph( "cluster1", "label" => "cluster #2" )
b0 = c1.add_nodes( "b0" )
e1 = g.add_edges(a0,b0)
e1[:lhead] = c1.id
e1[:ltail] = c0.id
e2 = g.add_edges(a0,b0)
e2[:lhead] = c1.id
For more informations about these attributs, see http://www.graphviz.org/content/attrs
from ruby-graphviz.
That has been confirmed, it is a bug in graphviz 2.28.
from ruby-graphviz.
Related Issues (20)
- Link to https://lejeun.es/ doesn't work HOT 1
- GraphViz::parse_string and unicode lables HOT 13
- Unexplicable label duplication HOT 2
- Ruby generated by dot2ruby is not valid
- Any way to set edge direction? HOT 2
- symbolize clashes with ActiveSupport symbolize HOT 1
- Is there any method to get graph for one node
- Handle core dump gracefully
- label HTML with table not working HOT 1
- Make it possible to define defaults
- sametail and samehead not working? HOT 1
- dot execution status incorrectly processed
- Support of clustercolor attribute
- Is there a way to make all added nodes unique? HOT 1
- Backslash at the end of string labels cause syntax errors
- Error building ruby-graphviz HOT 2
- Is there a way to get ruby-graphviz to output to a base64 encoded image? HOT 1
- Graphviz install problem HOT 1
- Invalid value generated for graph bb field
- APIs for deleting nodes or subgraph
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-graphviz.