Hacker News new | past | comments | ask | show | jobs | submit login

> lack of manual formatting controls

What do you mean? You can always specify the exact coordinates of some vertices:

   3 [pos="20,30"]
This line of code, anywhere within your graph specification, forces vertex 3 to be placed at position (20,30). It doesn't get more manual than that.



Have you tried it before?

Pos doesn’t work with most layout engines (most notably dot), making it kinda useless, and graphviz doesn’t easily expose the dimensions of a node to accommodate dynamic layout. You can work around that, but that’s nowhere near as ergonomic as some sort of “tree level”-like argument that would force a node to position at a certain Y-coord while leaving the automatic layout process otherwise intact.


I've used it many times with neato and it works alright. Of course, there's always some "tweaking" to do if you want the end graph to look right, but this is always the case.


Dot will set relative Y value via ranking. All nodes with the same rank share a common Y.


Despite some effort, I couldn't figure out how to get the rank attribute working for my use case. Any good references/examples you'd recommend?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: