Giter Site home page Giter Site logo

Comments (1)

erikbrinkman avatar erikbrinkman commented on June 30, 2024

Sorry for the delay in responding this. I've been busy with lots of other things.

I think I'm a little confused by what you're asking in terms of plugging in external layout algorithms. All this library does is create a layout, e.g. assign nodes and edges control points. I don't see a huge point in supporting other layouts in the library given that it's only purpose is to takes nodes and edges and assign points to them.

That's not to say that it's not configurable:

  1. There are actually three layout types in the library. Two topological layouts, and sugiyama.
  2. Sugiyama is based off of the original sugiyama paper, but it's probably more genuine to call it a layered algorithm like elk seems to use.
    • This layout algorithm itself is customizable. Each step in the process supports its own callback, so you could swap any piece out
    • Currently d3-dag has no support for ports, although I'm working on something potentially similar.
    • Also, elk seems to allow groups and variable "height" nodes. These are two long standing issues with d3-dag that I might be able to address soon, but currently aren't supported.
    • In terms of the straight lines with jumps that elk seems to prefer, that should be configurable with default settings, but different thresholds on the simplex coordinate assignment step, and manually treating the control points a bit differently.

However, maybe I misunderstood what you were asking?

from d3-dag.

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.