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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:36:56+00:00 2026-05-28T04:36:56+00:00

Suppose this code using neato: graph sample { layout=neato overlap=false splines=true tailclip=false headclip=false A

  • 0

Suppose this code using neato:

graph sample {
  layout=neato
  overlap=false
  splines=true
  tailclip=false
  headclip=false
  A -- I
  A -- J
  A -- B
  A -- H
  A -- E
  A -- K
  B -- D
  B -- C
  B -- L
  C -- M
  C -- N
  C -- O
  D -- P
  D -- Q
  E -- R
  F -- A
  G -- F
  H -- J
}

This gives us this diagram:

neato diagram

What I need is to place a node X, always fixed in a position south from his parent node. i.e. If I put another relation A -- X, X should be always placed south from A. And I don’t really care where everything else ends up.

I’ve looked into the pos attribute, but it doesn’t seems to be the solution since X is not really in a fixed position, but on a position relative to his relation.

Also tailport and headport, but they only define from where the edge will come out/in, but don’t really affect the direction of the node.

Update

An additional image to make things clearer:

x should be south from his parent

I don’t require neato, but I don’t want the graph to look like a UD or LR dot tree, I don’t want it to be linearly ordered. circo, fdp, sfdp, twopi are alright too.

  • 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-28T04:36:57+00:00Added an answer on May 28, 2026 at 4:36 am

    The neato program supports multiple modes, one of which can probably give you what you want. In particular, if you set mode=ipsep, you can specify dot-like constraints that are honored during the layout. For example, I take your graph and use the graph attributes

    mode=ipsep
    diredgeconstraints=true
    levelsgap=0.5
    

    The first turns on ipsep mode, the second tells the model to support directed edges as in dot,
    and the last specifies how strong the separation should be. I then set the edge dir attribute to none

    edge[dir=none]
    

    and add an edge A — X [dir=1]

    The dir=1 indicates this edge should induce a directional constraint. If I then run neato, I get the appended picture.

    neato layout

    The Graphviz attribute documentation http://www.graphviz.org/content/attrs provides more information about these attributes.

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

Sidebar

Related Questions

Suppose this C# code: using (MemoryStream stream = new MemoryStream()) { StreamWriter normalWriter =
Suppose, I have saved some permissions in the database by using this code: RoleRepository
How to get generic interface type for an instance ? Suppose this code: interface
Suppose I have this code: var myArray = new Object(); myArray["firstname"] = "Bob"; myArray["lastname"]
Suppose I have this code: String encoding = UTF-16; String text = [Hello StackOverflow];
This code is suppose to add an onClick event to each of the a
I've seen second one in another's code and I suppose this length comparison have
Suppose, I have a connected socket after writing this code.. if ((sd = accept(socket_d,
Suppose code like this: class Base: def start(self): pass def stop(self) pass class A(Base):
Suppose I have code like this: template<class T, T initial_t> class Bar { //

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.