Questions tagged [edge]

The tag has no usage guidance.

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

Multiple parallel edges with with a knee point in tikz

Is there an easy way to draw multiple parallel edges from one node to another with an knee point (two 90 degree turns) and equally distributed distance between the edges (not really perfect in the ...
2
votes
1answer
45 views

TikZ' Pic Syntax doesn't work with edge nodes

Eventually, I'd like to draw a picture inside of a node of a bigger picture. Since nesting tikzpictures is not recommended, I thought that the pic syntax provided a convenient alternative. However, ...
1
vote
0answers
30 views

Avoid edges and labels overlapping automatically

I would like to avoid edges and labels overlapping. I have seen different solutions, but all of them need manual adjustments. However, I need to produce several graph like the one below and find it ...
1
vote
1answer
34 views

Why doesn't `every edge` work with `--`

In TikZ, why doesn't every edge work with --? MWE: \documentclass[border=5]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[every edge/.style={draw=red}] \draw (0,1)...
0
votes
0answers
33 views

Arrows, edges and vertices

For my bachelor thesis I would like to create the following arrows, or more precise orientated subgraphs, so far I was not able to create them. Can anyone help?
0
votes
1answer
56 views

draw custom edge with open arc in tikz-er

I'm trying to draw an edge with an open arc in tikz(-er) looking like the one on the picture attached: Thanks in advance, Uncle Cuppa
3
votes
3answers
77 views

tizk aligning arc between nodes + same length

I draw a graph where vertices are located on a grid. I have horizontal and vertical arcs between some adjacent vertices which I would like to be horizontal or vertical. In addition arcs should have ...
2
votes
1answer
46 views

Why sloped edge labels position is independent from edge direction?

For example, that for positioning of edge labels is controlled by auto=right option. Than the position of edge labels should be on right side of edges regarding on their direction. However, in the ...
3
votes
2answers
153 views

TikZ: Annotate edges with distributions of Bayesian neural network

Is there a way of annotating edges in TikZ with "distributions" as in the right half of this image illustrating the difference between a regular and a Bayesian neural network? Here's what I have so ...
2
votes
1answer
98 views

shape C not found in the files.csv (tikz-network package)

Following the first example on page 33 of https://github.com/hackl/tikz-network/blob/master/manual.pdf I have been getting the following error below. ! Package pgf Error: No shape named C is known. ...
2
votes
1answer
95 views

Error at compiling example from the Manual tikz-network

As per example on page 26 of the manual https://github.com/hackl/tikz-network/ when doing latexmk -pdflua -pvc or latexmk -pdfxe -pvc I get the following error below. Note: already tried https://...
0
votes
1answer
58 views

Argument Spacing When Using lw Option for causes Compile Error with Tikz-Network Package

Writing the code with no spaces between the arguments of "\Edge[h local options i](Vertex i)(Vertex j)" normally handles processing: \documentclass{article} \usepackage{tikz-network} \thispagestyle{...
3
votes
1answer
61 views

Hiding partially a curve/path/edge

I would like to hide the b-i edge when it passes all between the edges f-l and h-c ( not only at the intersection). I would need a solution that doesn't force me to compute manually the slope at (f) ...
1
vote
1answer
35 views

Connected `to path`s

Consider the following \tikzset{ myline/.style={to path={(\tikztostart) -- (\tikztotarget)}} } and \draw (0,0) edge[myline] (1,1) edge[myline] (2,0); Now, it seems like \tikztostart does not ...
3
votes
4answers
94 views

Draw a cyclical graph with nicely aligned edges using nodes in tikz [duplicate]

I would like to draw a cyclical graph in tikz using nodes and edges as hassle free and with as little code repetition as possible. However, the resulting edges do not align nicely with respect to the ...
0
votes
1answer
257 views

tikz: Label number of edges

In the following picture there are multiple edges between two vertices. But I am able to draw single edge. So I want to label the number of edges. How can I do it? For example there are $3$ edges ...
1
vote
1answer
472 views

Draw lines without arrows between nodes

The answer referenced is https://tex.stackexchange.com/a/45735/180050 and is essential for this question. In the given answer, it shows how you can easily make directed edges between specified nodes. ...
1
vote
2answers
63 views

Draw sloped and above path text between two edge-connected nodes with “circle connection bar option”

I wish to draw the text "USA" on path_1 using options as it was drawn "USA" in path_2, but draw without using nodes,only using edge in path_1. \documentclass{article} \usepackage{tikz} \...
0
votes
0answers
31 views

Draw a path through some specified points

I want to write a small program to draw an automata using tikz, but when I finish, it seems like this: Actually, I use the way of converting Graghviz to tikz. So I would like to draw a path from (_0) ...
1
vote
1answer
33 views

Compiling problem, connecting nodes thru edges is not working

I am having an issue when trying to connect the edges of some nodes (I am doing this on overleaf). If I only choose one of the nodes at the top and connect the edges with the nodes I intend to use on ...
2
votes
1answer
26 views

Positioning edge label

I'm trying to position two edge labels over and below their respective edges. I'd like them to be center aligned in relation to the edge. This is my current code: \documentclass[tikz,border=9]{...
2
votes
1answer
103 views

Strange white outline around vertices in graphs made by TikZ [closed]

In Metapost I was able to make a graph where there's no gap between the edges and vertices: But in Tikz there is a gap between the two: Making a black "border" around the vertex did not help. No ...
0
votes
1answer
43 views

After page-break my node does not exist anymore

After page-break my node (string) gets lost. Only at the first page my node "100" is shown. This code contains parts from @skillmon @ulrike fischer @saso Thank you at this point. I know i should post ...
3
votes
1answer
148 views

How to connect to the north anchors of triangular (leaf) nodes in tikz-qtree?

How to make the edges from x (resp. y) to connect to the north anchors of the triangular leaf nodes A and B (resp. C)? Note that this should not change the edge style between x and y. Therefore, the ...
2
votes
1answer
211 views

Aligning text on edge

I cannot figure out why the text on the edge is not entered. What am I doing wrong? \documentclass[margin=1mm]{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{...
3
votes
2answers
127 views

How to place a Parabola/Distribution on top of a node in Tikz?

I'm trying right now to place a distribution (preferably a Gaussian curve) on top of a node within TikzPicture. The distribution should ideally be slightly offset vertically from the node, although ...
5
votes
1answer
339 views

Tikz, graphdrawing: How to use \foreach variables to set edge node labels?

I wanna create and label edges using a \foreach loop to avoid having to write every single node/edge when creating large graphs. It works fine when I use it to create nodes, but when I try to label ...
4
votes
2answers
229 views

tikz `postaction` using `edge`

Problem I want to add a tikz style which affects only some arrows in a large diagram, and adds a postaction. I also need to bend and label these arrows, so many are created using the edge command. ...
4
votes
2answers
88 views

Shifted edge labels in tikzpictures in nodes side by side with arrow between

I have two nodes in tikzpicture and in both nodes there is a graph in nested tikzpicture. Now, I would like an arrow to be pointing from one graph to the other - from the center of one graph to the ...
1
vote
1answer
189 views

Shifted edge labels in tikzpictures in nodes side by side

I'm trying to make two graphs and place them side by side and place edge labels over edges in the two graphs (as can be seen in the picture), but I am not successful in the second graph. My approach ...
14
votes
5answers
2k views

How to improve TikZ diagram with a lot of edges?

I have a diagram with 5 nodes and edges to each other, which leads to clumpy corners: \documentclass[parskip=half]{scrreprt} \usepackage[svgnames]{xcolor} \usepackage{tikz} \usetikzlibrary{...
10
votes
1answer
243 views

how to convince edge labels to be above/below edge, when they are slanted?

with the \documentclass[tikz, margin=3mm]{standalone} \usetikzlibrary{quotes} \begin{document} \begin{tikzpicture}[auto] \draw (0,0) to ["AA" '] + (2,0); \draw (0,0) to ["BB"] + (0,2); % \...
5
votes
4answers
1k views

How to draw edges with a bend?

I want to draw a diagram given below. Till now I am able to this much. \documentclass{beamer} \usepackage[most]{tcolorbox} \usepackage{multirow} \usetikzlibrary{matrix, arrows.meta, calc, positioning}...
1
vote
2answers
208 views

Drawing graph with Tikz: Link it with main text without overlapping with text

I'm trying to draw a graph in LaTeX with Tikz. Unfortunately, it is my first time using this package and I'm not too familiar with it. I've used the example from this website: http://www.texample.net/...
5
votes
2answers
597 views

How do I turn a draw edge twice

I want to connect two nodes with one edge so that it bends twice. For instance, \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node (A) {A}; ...
2
votes
1answer
742 views

Position of edge labels in \Edge[label=e] in tikz

Here is a simple code I have, which enough of an example of what I'm looking for. I am using the \Edge command with label, as this labels directly on the edge, which is what I am looking for. What I ...
1
vote
1answer
242 views

Decision tree formatting

How can I make the following decision tree legible? The code is below: \begin{forest} for tree={l sep+=.8cm,s sep+=.5cm,shape=rectangle, rounded corners, draw, align=center, top color=white, ...
4
votes
3answers
232 views

How to make a line edge slanted?

I have a code that draws two lines \documentclass[border=5mm]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \path[draw=red,line width=3mm](0,0)--(2,0); \path[draw=red,line ...
2
votes
2answers
903 views

Label of edges in a forest - labels are not visible

I decided to use tikz forest in my book which I prepare to make the figures more attractive... but I realized that it is not so funny without any previous experience with it. After hours of googling I ...
4
votes
1answer
551 views

How to put an arrow at midway of a loop

I am trying to reproduce the following figure: So far, my problem is to put the arrow of c_{1} at midway of the loop. That is what I've already done: \documentclass{article} \usepackage{tikz} \...
4
votes
3answers
432 views

Draw 2 edge connect to 2 side of the (circle) shape (1 each)

I want to draw each to connect to side of the circle. The circle is quite small. Here is what I am doing \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{...
0
votes
1answer
244 views

The start of an edge when this start is a node

The description of the edge operation \path ... edge[<options>] <nodes> (<coordinate>) ... opens with the following explanation (p. 246, chapter 17 'Nodes and Edges' in the TikZ ...
2
votes
1answer
300 views

Is it possible to add names to edge quotes?

The following MWE works as expected: \documentclass[tikz, margin=3mm]{standalone} \usetikzlibrary{quotes} \begin{document} \begin{tikzpicture} \path (0,0) edge node[auto] (label) {label} (1,1); \...
9
votes
1answer
843 views

Tikzpicture: How to make an edge not cross a node in a graph?

\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,% main node/.style={draw,circle,minimum size=20pt, inner sep =1pt},node distance=0.5cm] % the vertices \node[draw,circle,inner sep=3pt,...
3
votes
1answer
467 views

Center arrowhead in a path

How can I place the arrowhead in the center of an edge? \documentclass{article} \usepackage{tikz} \usetikzlibrary{automata,positioning} \usepackage{tkz-graph} \usetikzlibrary{decorations.markings} \...
2
votes
1answer
1k views

edge from parent[dashed] makes nodes themselves dashed?

I have a similar question, as asked here: How to set style of a single edge in the tree (TikZ) ? I have a tree, built with tikz. I want to style some single edges dashed, instead of solid. So i did ...
2
votes
1answer
160 views

Encode edge style parameters with variable argument count in \foreach list

In TikZ there is the \foreach construct which one can use to iterate over a list of items and draw them as desired. Is it possible to encode, say, edge style parameters in the list like so (which ...
5
votes
2answers
2k views

Set style on all nodes on top of edges in tikz

I have some edges with a node 'on top of it' defined as \path (source) edge node {some text} (target); But now it just prints some text directly on top of the node, which makes it difficult to read. ...
2
votes
2answers
889 views

Arrow not showing consistently in tikz \draw

I would like to have a figure, where every edge has an arrow. When I \draw edges with tikz, something strange happens: The "same" code yields different results. Code \begin{tikzpicture}[->,>=...
3
votes
1answer
471 views

Genealogytree sandclock marriage placement

I have tried to insert marriage dates on edges in a sandclock familytree, but the proband parents and grandparents dates are placed on the wrong side. \documentclass[12pt,danish]{article} \usepackage[...