Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Given the following paths on a directed graph:

(A --> B --> C)

(C --> B)

(C --> A)

I want to find a way to generate a visual representation for this directed graph. Is there any available software that is capable of doing this?

share|improve this question
Here's an example of the type of image that I'd like to generate: en.wikipedia.org/w/… –  Anderson Green Oct 5 '12 at 21:14
Perhaps this question should be migrated to mathematica.stackoverflow.com - it might be possible to do this in Mathematica. –  Anderson Green Oct 5 '12 at 21:15
On Stackoverflow, I found a Javascript library for this purpose: graphdracula.net –  Anderson Green Oct 5 '12 at 21:17

2 Answers 2

up vote 4 down vote accepted

You can use dot of the graphviz suite. Here's a simple example of the language.

digraph graphname {
     a -> b -> c;
     b -> d;


share|improve this answer
Is GraphViz available for Linux? –  Anderson Green Oct 10 '12 at 4:47
@AndersonGreen Yup, go to the download page for further details. –  Andy Oct 10 '12 at 8:15

You can do graphs like this using an Excel Scatter (XY) chart. Generally, the best way would be to:

  1. Create an XY point for each node.
  2. Create a series for each path.
  3. Format the series with end points to indicate which direction the path represents.
  4. Format everything else, so it doesn't look like an Excel chart.

The result could look something like this:


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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