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

learn more… | top users | synonyms

1
vote
0answers
14 views

Determine the number of non planar graphs G with 6 vertices? [closed]

Give an example of a non-planar graph of order 6 that contains neither K_5 nor K_3,3 as a subgraph ?
1
vote
0answers
22 views

Want to draw same graph by changing scaling of the axis [duplicate]

\documentclass[12pt,a4paper]{article} \usepackage[a4paper,bindingoffset=0.2in,left=0.7in,right=0.7in,top=0.7in,bottom=0.7in,footskip=.25in]{geometry} \usepackage[centertags]{amsmath} ...
0
votes
1answer
78 views

Figure with tikz composed by a graph and other object

I drawn a graph with tiKz package. \begin{figure}[htp] \centering \begin{tikzpicture} [shorten >=1pt,node distance=2cm,on grid,>=stealth',initial text=, every state/.style={draw=blue!50,very ...
6
votes
1answer
389 views

TikZ - Huffman tree

I used the SimpleHuffman.lua file, placed it in the same folder as my tex file and compiled the following code ("35.8.3 How To Generate Nodes Inside an Algorithm" in pgfmanual) using LuaTeX: ...
1
vote
1answer
167 views

How can I draw a circular graph in tikz?

I want to draw a wheel graph which is a cycle of nodes centred on another node. What I would like is to draw edges or other paths between the cycle's nodes in a way that they form an actual circle, ...
2
votes
0answers
71 views

Stepwise edge hightlighting (tikz) doesn't work with template

I'm just now working on a written paper for a presentation I've given and would like to reuse the graphs developed for the slides. Unfortunately the template given for the paper somehow screws with my ...
2
votes
1answer
158 views

Custom labelling of nodes in a graph

I have this complete subgraph: \begin{tikzpicture} \graph[nodes={draw, circle}, n=5, clockwise, radius=2cm] { subgraph K_n; }; \end{tikzpicture} If I wish to somehow distinguish vertex number ...
8
votes
1answer
107 views

Struggle with floor- and ceiling-functions in pgfplots

Could anyone help me with this struggle? I don't get, why the floor- and ceil-functions in the axis-environment of pgfplots and in floating text differ from each other. Aren't they both processed by ...
1
vote
1answer
75 views

How to draw graph of logarithm function?

I can draw polynomials using Tikz in Latex but I am not able to draw graphs of logarithms,exponential etc.
0
votes
0answers
35 views

How do I draw geometrical objects in my Latex document? Is there any good material for study this? [on hold]

Basically I want to draw triangles,rectangles and other basic structures which uses just straight lines. But I also want to labeling in my figures(angles and length of sides etc.).
1
vote
1answer
56 views

pgfplots plotting inverse exponential not working?

I am trying to plot a graph of 100*e^(-x/5) in LaTeX but for some reason it will only plot up to x=5. \documentclass{article} \usepackage{pgfplots} \usepackage{tikz} \begin{document} ...
8
votes
2answers
509 views

How to make my ugly graph look nice?

I am 2 weeks into using LaTex so pardon my noob-ness :) I have some data in my physics lab that I need to graph, which I have in a tab-delimited text file called current-force.txt. I graphed the data ...
3
votes
0answers
299 views

Creating a timeline

I am working on my thesis and need to create a timeline similar to this: I tried Chronosys package but am not sure if this is a good choice. \documentclass{article} \usepackage{chronosys} ...
4
votes
4answers
210 views

Create dependency graphs between characters

I was asked in thread 139691 to open a new question - so here we go: I need to create dependency graphs between characters in LaTex. As the output shall be processed via "pdflatex" later on, I opted ...
9
votes
1answer
4k views

Draw a graph in Latex with Tikz

I am interested in outputting this graph in latex using tikz: So far I got this: and my tikz code is \begin{tikzpicture} \node[shape=circle,draw=black] (A) at (0,0) {A}; ...
5
votes
2answers
359 views

Graphing sqrt(x^3+x^2)*sin(pi/x) gives horizontal line

I have no idea how this website works, so i will do my best. \documentclass[11pt]{article} \usepackage{amsmath} \usepackage{pgfplots} \pgfplotsset{compat=1.12} \begin{document} \begin{tikzpicture} ...
3
votes
3answers
64 views

Point object distorted because of proportions command

I'm struggling with my first Tikz graph. I would like to plot a circle in the coordinate (20.48,0.6358) which corresponds to a minimum. However, given that the axis have different scales ...
1
vote
1answer
158 views

Basic undirected graphs in TikZ

Hey TeX Stack Exchangers, I have to draw some really basic undirected graphs in TikZ and struggling to find documentation that fits my needs. Each of my graphs has 10 edges and an equal number of ...
3
votes
1answer
97 views

Using mathmode in '\graph[layered layout]' environment

I am trying to get into TikZ and pgf to create figures and graphs. In the package there is the \graph command, which provides a simple yet power full interface to draw graphs and trees. However I ...
1
vote
1answer
133 views

Creating a grid with different color vertices (graph)

I am new to using tikz and I have never used ifthenelse statements in latex before, but I am trying to create a grid where the vertices on every other diagonal are a different color and shape. This is ...
5
votes
1answer
118 views

Is it possible to draw a tree using standard syntax without overlapping, if graphdrawing is loaded?

It seems that merely loading the graphdrawing library can mess up drawing a tree using the standard TikZ syntax. Is there a way to avoid this unwanted effect? For example: ...
6
votes
1answer
242 views

How to draw a complex graph

I can draw a simple graph like this, but if I want to draw a complex one like this, I feel frustrated. How could I do it? The following are the codes which I drawn the first graph. ...
0
votes
0answers
52 views

Tikz, graphdrawing - common style for groups of nodes

I'm using tikz's graphdrawing library. I would like to define a common style for a group of nodes. What is the correct way of doing so ? Currently I specify the style per node, e.g. \graph[random ...
2
votes
1answer
89 views

A simple cycle with text instead numbers

can somebody help me to replace numbers to any text in the following graph: % A simple cycle % Author : Jerome Tremblay \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} ...
4
votes
0answers
68 views

Why is this edge not straight when using subgraphs in layered layout?

The MWE below produces a simple graph. When I add the two upper nodes A1 and B1 to a subgraph the horizontal alignment is lost which is understandable, since the nodes in the subgraph are positioned ...
5
votes
3answers
123 views

foreach loop for adding arcs using commands path and edge

i want to know how to use the foreach loop for adding arcs using commands \path and edge. For instance, the following code generates a cycle and the task is to add the arcs not manually: ...
5
votes
1answer
173 views

tikz: help with this foreach loop

i'm getting an error in this code, can someone help me. I'm trying to create two concentric cycles, but it doesn't seems to work. \def\n{10} \defn\radio{3.00cm} \begin{tikzpicture} \foreach \x in ...
4
votes
1answer
144 views

What is the easiest way to draw a graph with asymptotes using TikZ?

I have a graph with some extra graphics on it: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[ declare function={ f(\x) = 4/(1+pow(\x/5, 2)); }] % partitions ...
0
votes
3answers
115 views

Taylor's diagrams package : set color of individual elements

In Paul Taylor's diagrams package, is it possible to set the color of specific elements in a diagram? If so, how? I have tried using \color{a_color}. It changes the color of part of the diagram, but ...
3
votes
1answer
89 views

AND-OR Graph from Horn clauses

Does anyone know if there is a way to generate a nice graph from Horn clauses? for example: Ideally, I would like to generate AND-OR graphs like this directly from Horn clauses written in Latex; ...
3
votes
3answers
193 views

How can I make the loops fatter?

In this code, how can I make my loop fat? I know how to make it longer, but I want it wider as well. Please try to tell me using this code, and not new code. I'm new to tikZ and this is what is ...
3
votes
1answer
109 views

Changing arrow style between graph and legend

I want to have the arrows on the ends of the graph but have the legend just show straight lines (without arrows). MWE: \documentclass[12pt]{article} \usepackage{amsmath, amssymb} ...
10
votes
2answers
893 views

Putting tick marks on graph without label using TikZ

I'm trying to create a piecewise function on a colored background with TikZ that has tick marks on the coordinate axes every 2 units but a grid that intersects the axes every 1 unit. The problem I ...
6
votes
4answers
482 views

Simple and intuitive tool for generating simple diagrams

I am looking for a simle and intuitive tool for generating simple diagrams to be included in tex document. The graph I want to convert into tex is given below: Ideally, I would like to end up with ...
1
vote
1answer
159 views

Graphing y=x^2 and y=x

I want to draw the region bounded by y=x^2 and y=x. Any ideas? I was hoping this would be somewhat simple. I've tried used a similar, with \begin{axis}..\end{axis}, but it doesn't like that. Did I not ...
4
votes
3answers
488 views

Adjusting edge and vertex label

I am using the following code (thanks to several answers on TeX.Stackexchange) to draw a small bipartite graph: \documentclass{article} \usepackage{tkz-berge} \usetikzlibrary{fit,shapes,arrows} ...
4
votes
1answer
234 views

How to plot a bifurcation graph

I am trying to make just a general picture that looks like this one: It doesn't have to look exactly like this, but just look like a general bifurcation in similar spirit to this one. And here is ...
1
vote
1answer
75 views

How to put labels on a plotted graph?

\documentclass{amsart} \usepackage{tikz} \usepackage{pst-plot} \usetikzlibrary{decorations.markings} \usetikzlibrary{arrows} \begin{document} \begin{tikzpicture} \draw[->] (-3.5,0) -- (3.5,0) ...
2
votes
1answer
85 views

plotting spectra using r-studio in latex

Hi all. How can I create Raman graphs in latex? I have allready plotted it but I couldn't got it using Latex. So how can I merge between two software?
6
votes
3answers
7k views

Drawing undirected graphs in LaTeX

I came across this graph in the question Drawing graphs in LaTeX: without arrows? Is it possible to draw graphs like this one in LaTeX but without the arrows? edit: I found this piece below, but ...
1
vote
2answers
176 views

Windows spreadsheet - latex export

I am trying to find a Windows available spreadsheet with an option of graphs export to LaTeX. It would be great to export it directly from Excel, but I've read that it is not possible furthermore I am ...
1
vote
1answer
66 views

How to typeset a graph of a binary relation?

What is the best way to typeset in LaTeX a graph of a binary relation on $\mathbb{R}$ similar to the following: The bold lines denote a binary relation (consisting of three line segments).
1
vote
1answer
194 views

How can we draw these graphs like in this book?

Can you show me which tools we can use to draw the graphs look like in this book? (see below figure). Sorry, I don't know exactly where I can post this question.
1
vote
0answers
46 views

Including graph using tikz causes not including bibliography file

I am experiencing problems using package tikz. I have produced a graph in R and want to include it in my tex file using package tikz. After I include the the tex file with graph in myfile.tex with ...
4
votes
2answers
507 views

drawing curve line between predefined edges

Im trying to draw the following figure in LaTeX format: My question is how can I draw the curved line passing through the nodes shown in the figure? And how to change the color of the nodes left ...
2
votes
0answers
551 views

TikZ new graphing library - how to use?

Ubuntu 14.04 tex version : TeX 3.1415926 (TeX Live 2013/Debian) After seeing this post I really wanted to play with the example and library, however I can't seem to get it working on my system. ...
0
votes
0answers
40 views

Graph not drawing correctly when within a node [duplicate]

I am having a problem getting a graph to come out correctly. \documentclass[journal]{IEEEtran} \usepackage{graphicx} \begin{axis}[ title={}, xlabel={$q$}, ylabel={Time /seconds}, xmin=6, ...
4
votes
1answer
46 views

without using explicite coordinates - graph with nodes aligned above

I want to draw a structure as shown in the picture so that the knots 3 and 2 are on the top left and top right of 1. And 4 should be in the middle of 3 and 2 in the level on top of them and so on. ...
2
votes
1answer
107 views

Can anyone help in drawing this kind of graph?

Can anyone help in drawing the graph of the kind shown in figure with edge intersections? I struggled with pstricks and started to learn tikz but not able to do it. Kindly help as am not getting how ...
4
votes
2answers
722 views

changing y axis values

How do you change the y axis points to letters? Specifically I'm interested in using musical notes in the y axis. This is what I've tried and I received an error. \begin{tikzpicture}[>=latex] ...