4
Drawing Edges and Arrows
In the previous chapter, we learned how to produce shapes with text called nodes. In this chapter, you will learn how to draw lines with text, called edges, to complete your knowledge about placing text in diagrams.
We will also discuss customizing edges, texts, and arrows.
In this chapter, we will cover the following key topics:
- Connecting nodes by edges
- Adding text to edges
- Diving deeper into edge options
- Drawing arrows
- Using the to operation
By the end of this chapter, you will be able to draw colorful diagrams with text, arrows, and edge labels.
Technical requirements
You need to have a LaTeX installation, including TikZ, or you can compile the example code online with Overleaf or at https://tikz.org/chapter-04 ...
Get LaTeX Graphics with TikZ now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.