I am using beamer to create talks. I need to create a slide with a graph. Are there ways to create graphs in LaTeX or should create a picture somewhere and add a picture to a slide?
Edit: Oh, sorry for confusion. I meant this kind of graph:

|
I recommend that you take a look at Graphviz for constructing graphs of any kind. The language is simple to grasp if you're used to dealing with graphs. In fact, the graph on the wikipedia page was made using Graphviz! You can then use dot2tex to generate TikZ code which you can use in your beamer presentation with all the LaTeX prettiness. Below is a graph written in
This uses the code for the first graph on the wikipedia page you link to. |
||||
|
|
|
You could use tkz-graph.sty and tkz-berge.sty, which are build in top of tikz. I have some examples with code in my blog: Graph Theory in LaTeX. For example:
|
|||
|
|
|
The following is a minimal example from LaTeX and Friends. You may also find this example in the lecture presentation about data plots.
EDIT: Undeleted on 2012-12-11. |
||||
|
|
|
An example of creating a graph in Beamer with the
Another example with a directed graph:
A good tool for manually creating graphs in a pdf and eps format that you can insert into your Beamer presentation is the Ipe graphics editor. You can easily create a multi-page pdf in which you build or color a graph incrementally, and insert the pages info your document as described in the Beamer manual. Another tool that will make it easier to create graph in tikz for inclusion into your Beamer presentation is tikzit. |
|||
|
|
pgfplotspackage. It is built on PGF/TikZ hence naturally supportsbeamer. – percusse Feb 18 '12 at 4:58graphicxpackage. But in general, the supported image format is not the same for each compiler. – Click Me Feb 18 '12 at 7:47