Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a need to produce a simple dependency tree diagram. The input data would be in the following simple format:

ITEM_101    ITEM_75
ITEM_102    ITEM_77
ITEM_102    ITEM_61
ITEM_102    ITEM_11

This means that ITEM_101 depends on ITEM_75 and ITEM_102 depends on items ITEM_77, ITEM_61 and ITEM_11. So the diagram would have items ITEM_77, ITEM_61 and ITEM_11 in one vertical level and ITEM_102 would be below it with a line connecting each of the three dependencies to ITEM_102. The same would be for ITEM_101, ITEM_75 would be somewhere above it and there would be a line connecting it.

In the real world this tree represents a hierarchy of scheduling jobs. We have a very extensive workload automation hierarchy in Autosys and I have heard that its front end utility has something like this tree visual representation, however, for some reason, that utility has been disabled by admins. My business users want to see this hierarchy in an easy-to-consume format.

I was hoping that I won't have to program something like this from scratch because it seems like quite a common reporting requirement and the input data is simply formatted. My question is: is there a FOSS tool that takes standardized data input and produces such a hierarchical tree?


share|improve this question

closed as off-topic by gnat, MichaelT, Dan Pichelman, GlenH7, Kilian Foth Sep 23 '13 at 8:42

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions asking us to recommend a tool, library or favorite off-site resource are off-topic for Programmers as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." – gnat, Community, Dan Pichelman, GlenH7, Kilian Foth
If this question can be reworded to fit the rules in the help center, please edit the question.

Trees are fun. Don't miss out on this clear opportunity to write one yourself. – Steve Evers Dec 17 '12 at 19:49
i agree, i love trees. i'm a data tree hugger. as much as i would love to write a tool like that myself, it wouldn't feel right to reinvent the wheel. the answer below seems to be exactly what i need – amphibient Dec 17 '12 at 19:51
Can't you get the admins to enable the utility? – paul Dec 17 '12 at 19:56
dude, the bureaucracy is huge. they will find every excuse possible. will do – amphibient Dec 17 '12 at 19:58
up vote 3 down vote accepted

What you need is graphviz

digraph {
    ITEM_101 -> ITEM_75
    ITEM_202 -> ITEM_77

dot -Tpng > image.png
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.