News for hackers. Stuff that matters.
Re:Show HN: A Graphviz Implementation in Rust by enriquto on Thursday March 17, 2022 @05:55PM (#30716298)
> 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.
Re:Show HN: A Graphviz Implementation in Rust by wswope on Thursday March 17, 2022 @06:42PM (#30716680)
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.

Re:Show HN: A Graphviz Implementation in Rust by enriquto on Friday March 18, 2022 @04:31AM (#30719817)
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.
Re:Show HN: A Graphviz Implementation in Rust by steveroush on Saturday March 19, 2022 @04:19PM (#30737230)
Dot will set relative Y value via ranking. All nodes with the same rank share a common Y.
Re:Show HN: A Graphviz Implementation in Rust by wswope on Saturday March 19, 2022 @11:12PM (#30739735)
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?