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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T05:18:20+00:00 2026-06-06T05:18:20+00:00

I have a graph (organigram) how this: digraph G { nodesep=0.3; ranksep=0.2; margin=0.1; node

  • 0

I have a graph (organigram) how this:

digraph G {
nodesep=0.3;
ranksep=0.2;
margin=0.1;
node [shape=rectangle];
edge [arrowsize=0.8];
1 -> 2;
1 -> 3;
1 -> 4;
1 -> 5;
1 -> 6;
1 -> 7;
1 -> 8;
1 -> 9;
1 -> 10;
}

enter image description here

I have organigrams with 70 people and it’s impossible to print in A4. How would I put nodes in 2 or 3 lines?

  • 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-06T05:18:23+00:00Added an answer on June 6, 2026 at 5:18 am

    Here are two possibilities (see also this question):

    1. Use the unflatten utility

    Graphviz provides a tool called unflatten. If you pre-process your graph using this command line:

    unflatten -l 3 wide.gv | dot -Tpng -o wide.png
    

    the output image will be similar to the below picture. This is slightly less wide, and you may play with the -l option.

    graphviz unflattened graph example

    2. Use `rank=same’ and invisible edges

    You may use the standard techniques to make a automatically layed out graphs look more like you want it to:

    • rank=same to group nodes in subgraphs and to define which nodes should be on the same line
    • invisible edges to ensure that the different subgraphs appear on different ranks
    • maybe some constraint=false for some edges to influence the layout
    • group attributes of nodes to encourage straight edges.

    The output graph will not necessarily be prettier…

    Here’s an example, you can probably do better. Also, this may not be very practical if the graph is generated dynamically.

    digraph G {
    nodesep=0.3;
    ranksep=0.2;
    margin=0.1;
    node [shape=rectangle];
    edge [arrowsize=0.8];
    
    
    edge[style=invis];
    node[group=a];
    2->5->8;
    node[group=b];
    1->3->6->9;
    node[group=c];
    4->7->10;
    
    
    edge[style=solid];
    1 -> 2;
    1 -> 3;
    1 -> 4;
    edge[constraint=false];
    1 -> 5;
    1 -> 6;
    1 -> 7;
    1 -> 8;
    1 -> 9;
    1 -> 10;
    }
    

    graphviz output

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

Sidebar

Related Questions

I have a graph defined as such: digraph G { rankdir=LR node[shape=circle] q_[shape=none label=]
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
What algorithm I can use for problem like this: Have a graph positive weighted,
I have this graph created with gnuplot However the red line at the bottom
Let's say I have a graph with heavy nodes, that is each node is
I have a graph of multi-level dependecies like this, and I need to detect
I have a graph with Edge E and Vertex V , I can find
I have a graph in an SSRS report that shows percentages. I achieved this
Let's say that I have a graph like this: A---B---C---D (master) \ \-E---F (HEAD)

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.