Graphs are (1) graphs functions or (2) sets of nodes and edges.

learn more… | top users | synonyms

3
votes
1answer
2k views

Graph into graph with arrows

I'm using tikzpicture and I have some graphs, but I want some graphs with arrows. Is there any simple syntax change for that? My Graph: \begin{tikzpicture}[thick] \begin{scope} ...
5
votes
2answers
1k views

TikZ graph positioning

I am trying to use TikZ to include a simple graph in a short document, but I can't get to position the image properly. Sorry if it is a bit stupid, but this is the first time I am doing something like ...
3
votes
0answers
187 views

Directed hyper-edges in tikz [duplicate]

Possible Duplicate: Arc between arrows in TikZ (automata library) Can anyone tell me if and how I can draw directed hyper-edges in tikz? Specifically, I'm trying to get an edge starting at ...
19
votes
4answers
1k views

How can I display an array (as in the data structure from Computer Science, not the mathematical version) in LaTeX?

I'm finding this extraordinarily difficult to search for, as the mathematical meaning of "array" is much more common in LaTeX documentation. I essentially want a single row of boxes, into which I can ...
12
votes
4answers
2k views

Is there a pure LaTeX or TeX package for chart drawing?

We are creating an easy-to-use LaTeX template for our institution. I'd like to have a pure LaTeX way to create simple bar graphs and pie charts. Does anything exist? I can certainly throw the students ...
6
votes
1answer
2k views

Multi-line nodes/annotations in pgfplot

It would be great if I could get the annotation in the graph depicted below on two lines, but I can't seem to figure it out. Presently, I have: \begin{tikzpicture} \begin{axis}[ ...
5
votes
1answer
2k views

Specifying a domain and pgfplots

I'm making a graph with pgfplots with a specific domain, but the graph's domain (both x and y) are not changing. I'm reading through the pgfplots manual and I think I'm doing the right thing except ...
0
votes
1answer
605 views

How to use dot2texi in Lyx

I am trying to use dot2texi package in Lyx to generate graphs, and I include the following in the preamble of the document: \usepackage[all]{xy} \usepackage{dot2texi} \usepackage{tikz} ...
5
votes
1answer
3k views

What are all the options for the “edge” part of the TikZ \path command?

I am drawing edges in a graph using a command like \path (nodeName1) edge [->] (nodeName2) The only way I have learned what options can go into the square brackets after "edge" is by looking at ...
3
votes
2answers
2k views

Size of vertices of a graph in Tikz

I'm trying to produce a graph in Tikz using the Simple style but the vertices won't get smaller than 6pt or so and I'd like them to be much smaller. The code looks like this and if you try it out, the ...
2
votes
1answer
529 views

List of graphs in latex and numbering like Graph 1: , Graph 2:, ect

I am using the trivfloat package to define new environment for graphs. So far so good. I would like to make a list of graphs in the following layout: Graph 1: This is my graph Graph 2: This is my ...
8
votes
1answer
947 views

How to draw a hypergraph (forest)?

How can I draw a hypergraph structure (a.k.a. forest) like this: (Note: This is not a duplicate of this question, of course, since that drawing is very different.)
9
votes
1answer
2k views

How do I put loops at an angle in TikZ?

I'm trying to draw a graph in TikZ that has self-loops, and I'd like to be able to specify their position not only as "right" or "above", but something like "above right", i.e. at a 45° angle. How do ...
9
votes
1answer
509 views

TikZ picture too tall

I am typesetting the following equation: \documentclass[12pt]{article} \usepackage{tikz} \begin{document} \begin{equation} f\left( \begin{tikzpicture}[scale=0.5] \tikzstyle{every ...
4
votes
1answer
2k views

How to create Ishikawa (fishbone) diagrams with LaTeX?

Is there an automated way or a "template" to create Ishikawa (also called "fishone") diagrams with LaTeX? They are used e. g. to show the factors influencing a process and have a hiearchical ...
4
votes
3answers
3k views

Bipartite graphs

I want to draw something similar to this in latex. How can I do it? I want it to be a directed graph and want to be able to label the vertices.
10
votes
3answers
1k views

Drawing a tree of grids

I need to draw a game tree that is similar to the image below. Is there any way to do this using the Tikz package so that the grids can simply be added as nodes?
9
votes
1answer
666 views

Use Graphviz within *TeX

I am trying to generate a a graph with dot/graphviz. Is it possible to include it within *TeX and be compiled at *TeX compile time? I've read about TikZ, but it's not the same syntax, is it possible ...
2
votes
1answer
3k views

Drawing graphs with multiline labels for vertex/edge?

I have been using tikz-graph to draw graphs representing two-part protocols. Now I'd like to add comments to some nodes of the graph (multiline text, to the side of the vertex). I'm not sure how to do ...
2
votes
1answer
561 views

Can I have automatically adjusted plates in a graphical model?

I have an existing graph with some nodes and edges, written with TikZ/pgf, and I need to add a couple of plates to them to make it a hierarchical model (similar to those in ...
12
votes
3answers
1k views

Any way to get neato-like node placement in a TikZ graph?

I'm interested in drawing molecular connectivity graphs in TikZ. Using \node and child without any positions I am able to draw a tree diagram which is semi-useful as I can easily illustrate the ...
0
votes
2answers
845 views

PSTree creates confusing Undefined control sequence

This bit of code generates an undefined control sequence on the last curly brace. What am I doing wrong? \psset{levelsep=1cm,treesep=.75cm,nodesep=4pt} \begin{center} \pstree{\Tr{$z$}} { ...
10
votes
1answer
3k views

Chart with long x axis text labels looks ugly

Thanks to Caramdir and Alan Munn I am now able to create basic bar charts that use text as x axis labels. Functionally they are perfect, but some of them look kind of ugly. See for yourself: ...
12
votes
2answers
10k views

Basic bar chart with text as x axis labels

I am trying to create a very basic bar chart using pgfplots. I need four bars representing percentages with text as labels under the x axis. Text labels contain spaces and accented, non-English ...
6
votes
3answers
931 views

LaTeX and graphviz: “no room for a new \write”

I'm using TeXShop on Mac OS X (based on LaTeX) in conjunction with the graphvizzz package in order to draw inline directed graphs in my documents (with the use of write18 and the dot command). ...
37
votes
11answers
34k views

Best way to generate a nice function graph in LaTeX?

Which is the best way to put function graphs into a LaTeX document?
28
votes
2answers
3k views

Drawing a hypergraph

What is the proper way to draw a hypergraph? Is there a package to do this, or is there an easy way to draw such diagrams with a common drawing method like tikz? I'm trying to draw something like