Questions tagged [edge]

The tag has no usage guidance.

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

How to make edges parallel

How can I make the edges between the vertices {q_1,q_3} and {q_1,q_2,q_3} parallel? Code: \documentclass[tikz,12pt,border=1mm]{standalone} \usepackage[brazil]{babel} \usepackage{tkz-euclide} \...
user avatar
  • 51
1 vote
3 answers
60 views

Reposition graph edges

How can I place the loop of vertex {q_1, q_2, q_3} and vertex {empty set} above and below these vertices, respectively (as in the drawing below), instead of on the right? This is my .TEX: \...
user avatar
  • 51
0 votes
0 answers
30 views

How do I remove these corner markers /edge markers?

Hello everyone out there. I'm currently writing my thesis in Overleaf and for some reason all of my pages have these edge markers on them. How do I remove them? \documentclass[oneside,12pt]{...
user avatar
  • 1
0 votes
2 answers
38 views

how to change the angle between the edges of the automaton/graph

I would like to get this: but this is what i got: this is the code: \begin{center} \begin{tikzpicture}[ node distance=1.5cm, every node/.style={draw, fill, circle, inner sep=1....
user avatar
  • 51
1 vote
1 answer
35 views

Drawing dashed edges in a binary tree and adding new edges between different nodes

I would like to add extra edges between nodes that aren't specifically related as child and parents in a binary tree and also to change the styling of the edges. Currently I have the following code: \...
user avatar
  • 299
1 vote
1 answer
46 views

How to add text above the lines nodes in LaTeX

I have following code and I try to add text above the edges, but don't how to do it \begin{tikzpicture}[every tree node/.style={draw,circle},sibling distance=30pt, level distance=50pt] \tikzset{edge ...
user avatar
1 vote
1 answer
43 views

Tikz bend edges 'adding arrowhead'

So i am trying to make a flowchart with tikz. Everything was working fine and as expected. But then I tried to specify starting and endpoints of edges between some rectangles and out of nowhere tikz ...
user avatar
  • 45
3 votes
1 answer
27 views

Border on subset of pages

I want a gray border on the outside edges of pages of specific chapters in a textbook to obtain the visual effect that looking at the closed text pages you can spot the relevant special chapters. ...
user avatar
  • 217
1 vote
0 answers
41 views

I'm looking for general code to get labels the same orthogonal distance from their lines in a forest probability tree

I've got this: \documentclass{article} \usepackage{forest,tikz} \forestset{ ptree/.style={ for tree={ grow'=east, %grow' reverses direction of reading...for horizontal to the ...
user avatar
2 votes
1 answer
59 views

Line Break in Tikz Arrow Label

My goal is that, in the image shown below, that the label below appear on the line below above;, directly under above;. I've used \\ (and some other ideas) to try to achieve this (as shown in the ...
user avatar
1 vote
1 answer
110 views

TikZ: Placing a coordinate or node at end of edge

How can I place a node or coordinate at end of the edge? I expected this syntax: \draw (0,0) edge +(1,1) coordinate (x); Because the same syntax with the -- command, it works: \draw (0,0) -- +(1,1) ...
user avatar
2 votes
2 answers
57 views

drawing curved connectors within \foreach loop in a graph

I am trying to draw a graph on 216 vertices - 215 vertices distributed on a wheel around a fulcrum. Then I want to connect all the peripheral vertices to the fulcrum and join the vertices on the wheel ...
user avatar
1 vote
1 answer
61 views

How do I make a graph with branching rectangular edges, labeled before branching?

This graph duplicates the label, and the edges are not vertical or horizontal. I would like a vertical edge to leave A, labeled 'x' then split into two right and left horizontal branches which would ...
user avatar
  • 279
3 votes
1 answer
83 views

How to anchor fork separation in forest trees

In the process of creating a family tree using forest, I have used forked edge style in the main for tree{}. However when the children node texts vary in length, the parent node's fork loses it's ...
user avatar
0 votes
1 answer
34 views

positioning of the arrow text

The edge elements (the text) are not placed correctly on the right side (look at red circles). Is it possible to make them look like a mirror (compare to the left side)? Code of my edges: \...
user avatar
  • 119
0 votes
1 answer
41 views

Colour arrows graphdrawing

I am using graphdrawing tikz to create a small tree. In the MWE below, I would like to have a blue arrow pointing to B1 and an orange arrow pointing to B2. How could I do this? \documentclass[tikz,...
user avatar
0 votes
1 answer
65 views

How can label an edge of a tree which was manually added?

One can use TikZ to create a tree manually , or use the forest package to make the process easier. Below I show how I can use the forest package to create a binary tree, and turn it into a recombinant ...
user avatar
  • 13
0 votes
1 answer
301 views

How can I write text above the edges?

I have the following code to draw a graph with directed edges: \begin{tikzpicture} % vertices \node[vertex] (1) at (0,0) {$\times$}; \node[below left=1cm of 1] (A) {}; \node[below right=1cm of 1] (B) ...
user avatar
  • 103
2 votes
2 answers
56 views

Horizontal edges crossing vertical edges

How can I draw the horizontal edges as shown of the picture below? My code is as below. Thank you. \documentclass[12pt]{book} \usepackage[paperwidth=16cm, paperheight=24cm]{geometry} \usepackage[T1]{...
user avatar
  • 479
2 votes
0 answers
66 views

Is there a way in Tikz to draw a path specified by only two nodes avoiding regions in the drawing?

I want to connect a set of predefined nodes using a simple sintaxe like "\draw (SD00) -- (ED03);" using only the start and end nodes, instead of specifying a whole path through intermediate nodes. The ...
user avatar
1 vote
0 answers
53 views

Adding extra lines to trees with forest [closed]

I have trying to draw trees using forest with consonants and vowels on different tiers. With help from Sašo Živanović I managed to do this as in (1) in the following MWE. I next wanted a tree with a ...
user avatar
2 votes
1 answer
113 views

edge labels with boundary in tikz

I have the following graph I am trying to replicate with Tikz. I am having trouble creating the square edge label containers. Is there an easy way to do this in tikz? EDIT I made a small example ...
user avatar
3 votes
2 answers
457 views

Drawing a 7-node polygon

I am trying to draw 7 nodes in the shape of a heptagon, I have found how to draw the heptagon, but I dont how how to label each node 1-7 and then how to draw edges between the nodes. \begin{...
user avatar
1 vote
1 answer
486 views

Set another bend point for a tikz edge

On the left hand side you can see a tikz graph with a bend edge that is not placed really optimal. Is there a way to place the edge somewhat similar to the illustration on the right hand side. ...
user avatar
  • 388
0 votes
1 answer
168 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 ...
user avatar
2 votes
1 answer
84 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, ...
user avatar
  • 23
1 vote
0 answers
118 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 ...
user avatar
  • 41
3 votes
1 answer
137 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)...
user avatar
0 votes
0 answers
43 views

Arrows, edges and vertices [duplicate]

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?
user avatar
  • 1
0 votes
1 answer
152 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
user avatar
3 votes
3 answers
156 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 ...
user avatar
2 votes
1 answer
336 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 ...
user avatar
  • 255k
3 votes
2 answers
604 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 ...
user avatar
  • 3,782
2 votes
1 answer
142 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. ...
user avatar
3 votes
1 answer
171 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://...
user avatar
0 votes
1 answer
70 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{...
user avatar
3 votes
1 answer
260 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) ...
user avatar
1 vote
1 answer
87 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 ...
user avatar
3 votes
4 answers
112 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 ...
user avatar
  • 33
0 votes
1 answer
823 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 ...
user avatar
1 vote
1 answer
2k 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. ...
user avatar
1 vote
2 answers
124 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} \...
user avatar
1 vote
1 answer
56 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 ...
user avatar
  • 255
2 votes
1 answer
51 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]{...
user avatar
  • 831
2 votes
1 answer
180 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 ...
user avatar
0 votes
1 answer
51 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 ...
user avatar
  • 291
3 votes
1 answer
482 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 ...
user avatar
  • 2,239
2 votes
1 answer
523 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{...
user avatar
  • 2,313
3 votes
2 answers
163 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 ...
user avatar
5 votes
1 answer
852 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 ...
user avatar
  • 53