Giter Club home page Giter Club logo

Comments (3)

glejeune avatar glejeune commented on August 15, 2024

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.

glejeune avatar glejeune commented on August 15, 2024

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.

glejeune avatar glejeune commented on August 15, 2024

That has been confirmed, it is a bug in graphviz 2.28.

from ruby-graphviz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.