Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8982013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:28:44+00:00 2026-06-15T20:28:44+00:00

There are many tools and SDKs which layout a graph. ogdf, GraphViz, mxGraph, yEd…

  • 0

There are many tools and SDKs which layout a graph. ogdf, GraphViz, mxGraph, yEd…

enter image description here

One of useful layouts is “Hierarchical Layout”. But there is no pure algorithm or pseudo code to describe it. Even, There is not a clear definition of this type of layout. Is anyone know about the algorithm?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T20:28:45+00:00Added an answer on June 15, 2026 at 8:28 pm

    enter image description here
    (source: yworks.com)

    Simple hierarchical layout algorithm is visualisation of the ASAP sheduling algorithm (check this lecture [link]), so it’d be better to read it, on my view.

    BTW your picture is not fully correct – the proposed visualisation is only one of the possible ones.

    Imagine, that you have list of node and you know dependence between them.

    Node list

    node4
    node2
    node5
    node1
    node3
    node6
    

    Dependency list

    node1 -> node2
    node2 -> node4
    node3 -> node5
    node1 -> node3
    node3 -> node6
    
    • As your first step, you should find nodes with no dependance – this
      would be your layer#1 nodes. Draw them.
    • Then find all nodes that depends on layer#1 nodes – this would be your layer#2 nodes.
    • And the same thing for the layer#2 and etc.
      Finally, you’ll get:

               node1
              /     \
            node2  node3
             /     /   \
          node4 node5 node6
      

    This will work only for non-cyclic directed graphs. For the undirected ones you should modify the algorithm a bit (take random node as root), but the main idea, I think, is understandable.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For memory leaks, there are many tools available such as valgrind, which you can
I am aware that there are many services which provide geolocation tools for working
While there are many good online and offline tools for testing regular expressions, I
There were many questions about C++ template classes which contain static member variables, as
There are many similar questions, but I didn't find one that gets straight to
There are many questions like this but I can't find one that seems to
Many tools/APIs provide ways of selecting elements of specific classes or IDs. There's also
With the many programming tools from FaceBook, like FaceBook connect, graph api, etc... Is
There are many tools out there for writing and managing requirements, but are there
There are many tools that scrape HTML pages with javascript off, however are there

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.