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 6126411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:22:11+00:00 2026-05-23T16:22:11+00:00

I have a digraph graph G=(V,E) that I would like to redraw because it

  • 0

I have a digraph graph G=(V,E) that I would like to redraw because it is currently very messy. This is a flow chart that is being visualized and since |V|>1000 and each v in V has more than 1 outgoing edge, it is very hard to trace by eye. For instance; a node on the lower left corner is connected by an edge to a node on the upper right corner. It would be better, for example, if these two nodes were placed next to each other. There are too many edges and it is a pain to trace each of them.

I have access to and can change the (x,y) coordinates of all the vertices. I would like to redraw G by maintaining it’s current structure, in a way that is more human-friendly. I thought that minimizing the number of intersecting edges may be something to start with.

Is there an algorithm that can help me redraw this graph?

My question is, how do I assign (x,y) coordinates to each v in V such that it is organized better and easier to trace and read? How do I express these requirements formally? Should I go with a heuristic, if this is NP? Here is an example for a somewhat organized graph and this is something messy (although much smaller than what I’m dealing with).

Any help will be greatly appreciated. Thanks.

EDIT: I’m still looking for a to-the-point answer. I’ve researched into planar straight-line and orthogonal drawing methods but what I’ve got is lengthy research papers. What I’m seeking is an implementation, pseudo-code or at least something to get me started.

EDIT 2: I’m not trying to display the graph. The input to the algorithm shall be the graph G (composed of V and E) and the output shall be {(xi, yi) for each vi in V}

  • 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-05-23T16:22:12+00:00Added an answer on May 23, 2026 at 4:22 pm

    You want to look at graphviz.org; this is a difficult problem on which there has been a lot of research, reimplementing the wheel is not the right way to go.

    Probably you’ll have to get the java to write out a datafile which a tool like ‘dot’ can read and use for the graph layout.

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

Sidebar

Related Questions

I have a test graph here that I would like to tweak to make
In graphviz I would like to have an edge that doesn't cross the node.
I have this graph: digraph G { 1 [label=car]; 2 [label=x]; 3 [label=car]; 4
I have a graph library that I use to plot some data. This data
I have a graph defined as such: digraph G { rankdir=LR node[shape=circle] q_[shape=none label=]
This is what the generated graph looks currently: And here is the code for
I would like these two nodes to appear on the same level: digraph G
Have you managed to get Aptana Studio debugging to work? I tried following this,
I have to draw a small finite state machine that has some reflexive transitions
Am working on a program that will allow a graph of nodes to be

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.