The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [tkz-graph]

Package to easily create graph diagrams.

Filter by
Sorted by
Tagged with
12
votes
1answer
7k views

Multi-rooted Tree-like Structures and Nodes with Multiple Parents in LaTeX

The qtree package seems to facilitate the drawing of simple trees only. Is there a way to incorporate: Multiple roots & Nodes with multiple parents in a tree in LaTeX?
1
vote
1answer
2k views

TikZ-pgf directed graph: change arrow color and location

I have something like this: \SetVertexNormal[Shape = circle, LineWidth = 2pt] \SetUpEdge[lw = 1.5pt, color = blue] ... \begin{tikzpicture} \Vertex[x=0 ,y=0]{1} \...
7
votes
1answer
3k views

How do you make a tkz graph with edges starting and ending at the same vertex?

I am trying to use the tkz-graph package to put together a directed graph. I have never used it before, so I am trying to piece together examples I have found on the internet. Below is the code that I ...
6
votes
1answer
3k views

How can I increase arrow-head size in tkz-graph?

How can I increase the size of the head of the arrows in a tkz-graph graph? This question is similar to Is it possible to change the size of an arrowhead in TikZ/PGF?, but requires an adaptation of ...
4
votes
1answer
1k views

Labeling Edges in a Weighted Digraph

I would like to have the labels of the edges of a weighted digraph positioned "beside" (north, south, east, west, etc.) the arrows. I have already created the digraph with: \documentclass{article} \...
3
votes
2answers
6k views

tkz-graph: changing individual vertex type

I'm using these settings for most vertices: \GraphInit[vstyle=Classic] \tikzset{VertexStyle/.append style = {minimum size = 5pt, inner sep = 0pt}} But I'd like to have one or two vertices of my ...
9
votes
2answers
4k views

Petersen graph with new tikz graph library

I'm considering moving from tkz-berge to the new tikz graph library for drawing my graphs (in the sense of graph theory). I have produced the Petersen graph, but is there is a more elegant way of ...
6
votes
1answer
871 views

How to use tkz-graph and tikz-qtree without conflict?

It seems that the tikz-qtree and tkz-graph packages both define (or redefine) the \edge macro... I'd like to use both, but it doesn't seem possible: \documentclass{article} \usepackage{tikz} \...
8
votes
1answer
13k views

Showing weights on Tikz graph using “draw edge” commands

I would like to show some numbers as weights of the edges of my Tikz graph. My graph without weights is the following: \begin{figure}[!ht] \begin{tikzpicture}[shorten >=1pt, auto, node distance=...
4
votes
1answer
99 views

Drawing a polygon

How to use the tikz package to achieve the following. I looked at but still couldn't get it done. Any help is much appreciated.
4
votes
1answer
500 views

How to reuse vertex names using the tkz-berge graph drawing package?

I'm trying to draw a graph using tkz-berge, where many of the vertices might display the same value, is there a way I can do this? Here is my code: \begin{figure}[h] \centering \begin{tikzpicture}[...
3
votes
2answers
808 views

Invisible vertices with tkz-graph

Is it possible to hide the vertices while using package tkz-graph? Firstly I want to show just the edges, and then show the whole graph. However, I need the vertices from the beginning in order to ...
2
votes
1answer
582 views

Drawing arrows next to edges on graphs

I need to draw several graphs (the graph theory kind) with arrows drawn next to the edges. Here is a rough sketch of the kind of thing I mean: I'm aware of tkz-graph and would like to use it if ...