Questions tagged [tkz-graph]

Package to easily create graph diagrams.

It uses Tikz, which is a user-friendly syntax layer over pgf.

Ref:

89 questions
4
votes
1 answer

Something wrong to use ifthenelse and mod function in tikz

I get errors for this latex code, please someone can help me \documentclass{article} \usepackage{tikz} \usepackage{tkz-graph} \usetikzlibrary{graphs,graphs.standard,arrows.meta} \begin{document} \newcount\mycount \begin{tikzpicture} …
HTeX
  • 77
4
votes
2 answers

Achieve a centered node with equal edge lengths using tkz-graph

I use tkz-graph to produce the following graph: The code to produce the graph is as follows: \documentclass{standalone} \usepackage{tkz-graph} \begin{document} \begin{tikzpicture}[scale=0.6, every node/.style={scale=0.6}] …
Dennis
  • 3,855
4
votes
1 answer

How can I fill a vertex with black bars?

Suppose I have simple graph drawing like the following. \documentclass[12pt,a4paper]{article} \usepackage{tkz-graph} \begin{document} \begin{figure} \begin{tikzpicture} \SetUpEdge[lw = 1.5pt, color = black, labelcolor =…
mrm
  • 189
3
votes
2 answers

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 graph be hollow with a thick outer edge. I'm very…
jtbandes
  • 4,262
3
votes
1 answer

How can I change the colors of the edges in a graph created by tkz-graph in LaTeX

I'm trying to change the colors of two of the edges in the basic graph created by the tkz-graph LaTeX code below to red and the other two to blue and I can't seem to find a way to do it... Any help would be greatly appreciated.…
Tom1212
  • 81
3
votes
1 answer

tkz-graph doesn't respect color option to edge when Welsh or Normal style specified

When I specify \GraphInit, the \Edge command doesn't respect any options. In my case, I'd need to specify the color and line width. In this example, I wanted to set one of the edges red and the other gray, and wanted thicker lines, but both edges…
3
votes
2 answers

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 draw the edges between them. I tried with…
ASdeL
  • 4,925
3
votes
1 answer

Draw a factor graph with tikzpicture

Ordinarily I draw graphs in tikz with: \begin{tikzpicture} \Vertex[x=1,y=1]{x1} \Vertex[x=2,y=1]{x2} \Vertex[x=3,y=1]{x3} \Vertex[x=4,y=1]{x4} \Vertex[x=5,y=1]{x5} \Edge(x1)(x2) \Edge(x2)(x3) \Edge(x3)(x4) …
Andrew Latham
  • 283
  • 1
  • 3
  • 8
2
votes
1 answer

How to draw this DAG dependency graph in Latex

I am wondering how to draw something like this in Latex. Notice the edges are not straight lines as I see in many Tkz examples. This is an example of attribute grammar where edges indicate the flow of attribute…
Node.JS
  • 685
2
votes
1 answer

Multiple labels for a vertex using tkz-graph

I am trying to create figures that illustrate how binary trees may be represented using array indices. Therefore I would like each node in my tree to have two labels: One inside the note, representing its value, and one above the node, representing…
2
votes
1 answer

How do I move label on loop to above the loop in a Tikz picture

I have the following standalone class file to create a figure for a journal…
2
votes
1 answer

How can I make a thick line in a graph?

I have this code which generate me a graph. How can I make line 1-3 to be thick? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[top=2in, bottom=1in, left=1in,…
1
vote
1 answer

Both internal and external vertex labels in the package tkz-graph?

I'm drawing graphs in which I want to label vertices (e.g. x, y, z, w, etc), but also attach the value of a function calculated at each vertex (e.g. 4, -3, 2, 7 corresponding to vertices x, y, z, w etc). I'd like to achieve this by having x inside…
1
vote
1 answer

How to Generate Perpendicular Bisectors in Graphs Using Tkz-Graph

I am trying to demonstrate a geometric way to determine the symmetries of a graph generated using tkz-graph. I was able to use a not-so-elegant way to get one of the perpendicular bisectors. How may I generate the other ones without figuring out the…
DJJerome
  • 4,056
1
vote
1 answer

Small vertices with tkz-graph

I would like to draw small (although visible) vertices with package tkz-graph. I tried with MinSize, but this is a lower bound on the size, and I am looking for an upper bound. In the following example, it seems that when MinSize is below the…
ASdeL
  • 4,925
1
2