Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

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

closed as off-topic by fixer1234, Sathya Sep 24 '15 at 4:26

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

  • "Questions seeking product, service, or learning material recommendations are off-topic because they become outdated quickly and attract opinion-based answers. Instead, describe your situation and the specific problem you're trying to solve. Share your research. Here are a few suggestions on how to properly ask this type of question." – fixer1234, Sathya
If this question can be reworded to fit the rules in the help center, please edit the 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
up vote 6 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;
 }

example

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:

graph

share|improve this answer

The R language is ideal for this, especially with large/changing datasets. Here's a simple guide.

You'll need an R development enviroment, I use revolution analytic's.

share|improve this answer

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