Thanks, just after writing it occurred to me that it's of course not just a tree.
But I also need it to be ranked by phases, that's where the time-axis comes in.
- the jobs without dependency run in phase 0
- the jobs depending on phase 0 run in phase 1
- and so on
This "rank" requirement (or was it "grade") already includes acyclic, otherwise this wouldn't be possible. I think this is an even narrower requirement than just DAG.
Anyway talking about it helped me sketching my own algorithm already... :)
I searched DAG with graphviz, but couldn't see them ranked in phases and the nodes were all circles (I have practically no hands-on experience with graph-viz)
> automate creating images of them without edges having to cross each other, etc.
Really? I have doubts it's always possible to draw a planar graph.
consider a 3d-cube, how do you want to draw a planar graph without crossings - here x ?
0
/ | \
/ | \
A B C
|\ / \ /|
| x x |
|/ \ / \|
a b c
\ | /
\ | /
1
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.