Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. 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 need to make a nicer-looking version of this image:

Undirected graph with crappy loop

Is there some program that generates these graphs? Or are they done by hand in something like Visio?

(I'm on Mac OS X, and I have access to Windows if needed)

share|cite|improve this question
I use gastex or MetaPost. – Yuval Filmus Apr 7 '11 at 21:41
See also this post on meta. – Martin Sleziak Sep 19 '15 at 5:40
up vote 8 down vote accepted

Try Graphviz.

share|cite|improve this answer
I quickly figured out the DOT language and made the graph as I wanted it. Thanks! – Ricket Apr 7 '11 at 22:11
If it's not too much trouble, would it be possible for you to include an example of the above graph drawn by Graphviz? – Douglas S. Stones Jan 4 '13 at 5:22

If you use $\LaTeX$, tikz is very nice for making graphs (I use it all the time to make commutative diagrams).

Otherwise one could use pretty much any vector graphics program, for example the free (as in freedom and in beer) inkscape.

There's also dia, though it is more for UML-like diagrams.

share|cite|improve this answer

Sage can generate graphs. It's like Mathematica/Maple but it's open source and free.

share|cite|improve this answer

The igraph library for R allows you to plot graphs. Combined with tikzDevice, it can also produce LaTeX output of the plots.

Here's an example:

The OP's graph

The graph itself was produced using the R code

g <- graph.empty() + vertices(letters[1:3])
g <- add.edges(g,c(1,2,2,3,3,1,2,2))
g <- as.undirected(g)

and was plotted to a LaTeX file using the R code

share|cite|improve this answer

I've found Gliffy to be a great method of doing this, and it has the advantage of being totally web based--nothing to install or screw up across operating systems.

share|cite|improve this answer

Since no one else has mentioned it yet, yEd, a free diagram/graph editor.

share|cite|improve this answer

Try Gephi is a open source mac for graphs....

share|cite|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.