Questions tagged [graphs]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
22 views

Overleaf showing simple graphviz w/nested folders

I have a project with one main.tex file and several *.tex-files stored in a subfolder called "chapters". My problem is that in one of the chapter files, say chapter-1.tex, I'm trying to insert a ...
0
votes
2answers
73 views

Graphs and Dynkin diagrams in latex

I would like to draw the following image using the package dynkin-diagrams:
1
vote
1answer
49 views

Diamonds pattern between two functions

I would like to have a diamonds pattern (or another pattern between) the two red functions. Additionally, it would be great to have the dotted line style of $H_{S_2}(\beta)$ represented at the left of ...
2
votes
1answer
36 views

Cased edges in gap-planar graph (intersections, redraw path)

For illustrating my thesis on k-gap-planar graphs I'd like to find an elegant and parametrizable way to produce drawings of such graphs with cased edges (to make clear to which of the edges the ...
0
votes
3answers
117 views

Desperately Looking for a tikZ MWE

I'm looking for a basic MWE on how to create a tikZ graph (or any other environment) along the lines of the attached picture. I'm able to create one simple coords system but that's about it... What's ...
0
votes
1answer
65 views

Create a pile of two graphs using TikZ

For a report in my school course, I need to make an analysis of an output signal from a certain Electrical circuit according to the input. Here is the graph which I am trying to reproduce: It ...
0
votes
2answers
81 views

How can I reproduce this simple game tree diagram with arrows?

I would like to reproduce the figure below. I think it was done using Tikz but I am not sure how the arrows were drawn and the curly brackets were made. I was wondering if you guys can help me write ...
2
votes
1answer
42 views

Drawing a path with n vertices in XY-Pic

I am trying to draw a path graph using XY-Pic, and I would like to show that there's n vertices in a certain point, with a simple dashed / dotted line between two vertices, and an underbrace (or ...
0
votes
1answer
54 views

Drawing a two-sided trade graph on Tikz

I am trying to draw the following graph on Latex using Tikz: I want the caption of the figure to be below. I have been using the following codes: \begin{figure} \centering \begin{tikzpicture}[>=...
2
votes
2answers
171 views

Drawing a Wickselian triangle graph in Latex

I am interested in drawing this Wickselian graph using Tikz: I want to move the labeling of the figure down below though. Since I am very new to Tikz any advice on how I can get started? I would ...
2
votes
1answer
188 views

How can I draw a graph that looks like this?

I'm a new LaTeX user and I need to draw a graph that looks like this at short notice. I have no idea where to start, please can someone help me out?
0
votes
2answers
92 views

Draw circuit and graph using circuitikz

I am trying to draw these diagrams using CircuitTikz or any alternative would be appreciated as well. https://www.electronics-tutorials.ws/wp-content/uploads/2018/05/filter-fil16.gif and https://...
1
vote
1answer
26 views

multi column stacked bar plots

I'm trying to create a stacked bar plot, with groups of 3 columns. I figured out how to do that, but the columns go over each other no matter how I change the bar width or bar shift. For a non-...
1
vote
1answer
62 views

Graph of a general region

I am looking for some code on how to plot the region bounded by x=0, x=1, y=0, y=1, and z=xy for some z. Basically just a graph of the unit square with vertices (0,0), (0, 1), (1,0), (1,1) with the ...
3
votes
2answers
123 views

How to draw a Cayley Graph?

I need to draw a Cayley graph, but I dont know how to do it. In particular i need the same graph as shown in the figure. Please help me. I can do this for now: \documentclass[tikz,border=5]{...
1
vote
2answers
74 views

How to draw the given graph in LaTeX? [duplicate]

How to draw the following graph in my manuscript? I am unable to draw this graph. Can someone please me to draw this? I am new to TikZ. I have started learning from this link https://www.overleaf....
7
votes
4answers
709 views

I'm trying to graph a rational function

The function I am trying to plot is y = \frac{6x^2-3x+4}{2x^2-8} \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{titling} \usepackage{amssymb} \usepackage{pgfplots} \begin{...
2
votes
1answer
100 views

Pgfplot/tikz plot creation

\documentclass[11pt]{article} \usepackage{tikz} \usepackage{pgfplots} \begin{document} \begin{figure} \centering \resizebox{\textwidth}{!}{% \begin{tikzpicture} \begin{...
0
votes
1answer
81 views

Cannot draw arrows in a graph

I have the following code for a graph: \begin{tikzpicture}[blueringnode/.style={circle, draw=blue!100, fill=white, thick, minimum size = 7mm}, redfillnode/.style={circle, draw=black!100, fill=red!100,...
0
votes
1answer
39 views

How to write numbers relative to an arrow while making a directed graph?

I need to display a directed graph on a LaTeX document, it should look like this: but I can't find how to write the numbers above, below, right o left to a line or an arrow, can someone give a ...
3
votes
2answers
74 views

i want to draw self loop at node

Question: In my graph i just want to draw a self loop at node v9. How can i do this? MWE: \documentclass[10pt]{article} \usepackage{pgf,tikz,pgfplots} \pgfplotsset{compat=1.15} \usepackage{mathrsfs}...
0
votes
0answers
33 views

Figure-handling similar to Word+Origin, as implementation using LaTeX

When putting a figure based on an Origin-file into Word, it is possible to double-click on that figure later in the finished Word-document to open the original origin-file (if available on the ...
0
votes
0answers
40 views

Graphs in latex using tikz

I have been trying to find the best possible way to produce graphs (for graph theory) in latex, and so far I seem to have stopped on tikz package. So my first question is for those who do make graphs, ...
0
votes
0answers
21 views

Plotting simple CDF graphs

I am working on a homework assignment that requires me to sketch simple cumulative distribution functions and probability mass functions. They are either step functions or discrete points. Can someone ...
1
vote
1answer
61 views

Graph with five nodes and loops

How could I create this graph? Assume that there are weights from every node to all directions. Apologies for the badly drawn example and thank you in advance for your help!
0
votes
0answers
52 views

MetaPost graph: how can we make setrange to accept negative coordinates (when numbersystem is not scale)?

I want to plot graph with the MetaPost package graph. I have just noticed that setrange does not accept negative coordinates when -numbersystem is not scale. More precisely, it takes their absolute ...
2
votes
0answers
62 views

Plotting two functions and their intersection using tikz/pgfplots

I'm new to both tikz and pgfplots, and I am having trouble getting an image of the functions f(n) = 2n^2 and g(n) = 50*n*log2(n) on the same plot. I want the domain to go from n=1 to n=1000, and I don'...
0
votes
0answers
27 views

Plot a weighted graph with nodes being images

I want to plot a graph where nodes are images. I am aware that one can use the tikz package to plot weighted graph, but how can I customize it so that the nodes would be images that I have? The result ...
0
votes
0answers
69 views

TikZ: Draw edge between node labels

I need to make a diagram in which the node labels are outside of the nodes themselves, and thus the edges in the graph should go from one node label to another. A simple snippet of what I currently ...
2
votes
1answer
91 views

Graphs of Lie algebras in Latex

For example, I have this \documentclass[12pt,reqno]{book} \usepackage{dynkin-diagrams} \begin{document} \[ \begin{array}{cc} A_1 \times A_1 & \dynkin{A}{1}\dynkin{A}{1} \\ A_2 & \dynkin{...
0
votes
1answer
45 views

Visualizing of routing problems over time

I'm more or less a total newbie in Latex and right now I'm in the final days of my masters thesis. I stumbled over a nice way of illustrating a sequence of visitiations in a tour. Think of a tourist ...
0
votes
0answers
47 views

Graphs and Dynkin-diagrams in Latex

Please, if anyone knows about latex, can help me drawing Dynkins diagrams and also the graphs in chapter 13 of the book "Introduction to Lie algebras"? I wrote what Benjamin McKay gave me, as in below ...
1
vote
2answers
85 views

How to draw directions on edges of the graph

I have following 2 questions. First of all i am telling that the MWE provided by me is partially edited from geogebra. Question: 1 In this graph i would like add direction (like >) on all four edges....
0
votes
1answer
42 views

Library graphs - mixture between layered layout and tree - How to do?

the creation of a graph with some specific attributes is for me not possible. Maybe you have some helpfully ideas how to realize?! The attributes of the graphs in 1. and 2. have to be "mixed", while ...
0
votes
2answers
62 views

Draw Heawood graph with tikz

this is my first question. I want to draw the Heawood graph using tikz. I don't know how to do a nice version like the one from the wiki picture, but I thought I could start instead by uniformly ...
1
vote
0answers
32 views

Putting two graphs aside with the command \hskip

I tried to put aside two graphs of functions with the command \hskip but it seem that it doesn't work. Instead the two graphs start to move away vertically as i vary (x) in the command \hskip (x) pt. ...
2
votes
2answers
88 views

Parallel tikz lines and node placement (network graph)

I am trying to recreate (the less than pretty) figurebelow Using the code at the bottom of the post I was able to come up with the following solution I have some gripes with this solution, which I ...
1
vote
1answer
41 views

Creating Random Unlabelled Graphs

Hi I am using exam class and I am trying to make random graphs for a multiple choice question as shown. Would appreciate it if the graphs can be aligned horizontally as A and B, C and D
6
votes
1answer
104 views

How to write a loop to reflect a path (Asymptote)?

I am trying to shorten a code that contains a lot of reflections by writing a loop: [asy] unitsize(1.5 cm); pair A,B,C; real alpha=(20); real beta=(10); real gamma=(180-alpha-beta); real rad=(pi/180)...
0
votes
2answers
71 views

Hyperedges graph with TikZ

I would like to generate the attached graph by latex. It is also a hyperedges graph. Could you help me, please? The colours may be skipped. Thanks in advance.
9
votes
2answers
943 views

Programmatically Illustrating Permutations

Here's an illustration of what's known as an expansion permutation (the top half). It just means that instead of going straight through (like the bottom half aka. the identity permutation), the signal ...
1
vote
2answers
62 views

doubling up on edges in a tikz graph

I made the following diagram based on an excellent, very interesting answer to an earlier question. %%% Preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \documentclass[border=9,...
3
votes
2answers
142 views

How to reveal TikZ plot with \printanswers in exam class

In the exam class, you can reveal solutions by uncommenting the command \printanswers. This allows the author to keep both question and solution in the same document, without needing to manually ...
2
votes
1answer
59 views

Pgfplots Scientific Notation 2^x

I am plotting a logarithmic graph and since the values are relatively large, pgfplots is outputting the values in the y-axis in terms of 10x . However, I'd like to output it the format 2x. I read the ...
1
vote
1answer
41 views

How can I write text above an horizontally centered line?

I am using LaTeX and I would like to write text above a line centered horizontally to write a path from graph theory like it is done in the book Graph Algorithms (2nd Edition) by S. Even. My ...
5
votes
1answer
112 views

TikZ: How to make edges jump to show they don't intersect?

I saw this and I like how the lines jump over each other to show they're not connected when they cross over: Here's the code for it. I tried to apply the same technique, without much luck: % ...
5
votes
1answer
111 views

Centered bended arrow on tikz edge

I try to rebuild a graph within tikz. This Graph has some edges which have an arrow underneath of them. Important for me is the bend which should be the same as the red edges. Not like in the ...
1
vote
1answer
109 views

How to connect points on a circle with arcs and label them

I have a "circle" or a circular region. I want some nodes on the circular region to be connected by the arcs. and I also want some nodes (like \hdots) to appear very close on the circle. and the ...
3
votes
1answer
50 views

Is there a way of generating fluid flow graphs similar to those of 3B1B?

I've just seen 3 Blue 1 Brown's video on divergence and curl and found his diagrams on fluid flow to be so beautiful, especially for an article or book. Now, I'm familiarized with TikZ and PGFPlots, ...
1
vote
1answer
250 views

TikZ Grid Paper With Node Coordinates

I suck at drawing with TikZ, and it takes forever, so I decided I need a new approach. When I use Illustrator and Inkscape, I like to start with a grid; like graph paper. So now I do this (below), so ...