How to make the following directed graph with text?

Andrew Tawfeek 06/13/2018. 3 answers, 194 views

I'm having a lot of trouble figuring out how to draw the following directed graph:enter image description here

Could someone help me/provide insight on how to make these myself in the future?

3 Answers

marmot 06/13/2018.

This site is full of examples. You could use tikz-cd, plain TikZ, PSTricks and so on. Here is an example using forest.

% starting point:
  for tree={
    line width=1pt,
    child anchor=north,
    parent anchor=south,
    edge path={
      \noexpand\path[line width=1pt, \forestoption{edge},-latex]
      (!u)  -- () \forestoption{edge label};
  s sep+=20pt,
   [Commutative\\ Rings
     [Commutative Rings\\ with identity,name=cr
      [Integer domains,l*=2,name=id] 
   [Rings\\ with unity,name=ru
    [Division rings
 \begin{scope}[line width=1pt]
   \draw[-latex] (ru) -- (cr);
   \draw[-latex] (id) -- (fld);

enter image description here

Bernard 06/13/2018.

Here's a short code with pstricks:

%\usepackage{auto-pst-pdf} % to compile with pdflatex


\begin{psmatrix}[arrows=->, arrowinset=0, colsep=0.8cm, nodesep=6pt]
&[name=R] Rings \\
[name=CR] \Shortunderstack{Commutative\\Rings} & & [name=RU]\Shortunderstack{Rings with \\Unity} \\
[name=CRI] \Shortunderstack{Commutative Rings\\ with Identity} & & [name=DR] Division Rings \\
[name=ID] Integral Domains & & [name=F] Fields
\foreach \s/\t in {R/CR, R/RU, CR/CRI, RU/DR, RU/CRI, CRI/ID, DR/F, ID/F}{\ncline{\s}{\t}}


enter image description here

Zarko 06/13/2018.

an alternative/competitive forest solution:


for tree={
        text centered,
    l sep=5mm,
    s sep=8mm,
    edge = {thick, -Stealth}
    [Commutative\\ Rings
        [Commutative Rings\\ with identity,name=A
            [Integer domains,tier=word,name=B]
   [Rings\\ with unity,name=C
        [Division rings
\draw[thick, -Stealth]  (C) edge (A) (B) to (D);

enter image description here - Download Hi-Res Songs

1 Martin Garrix

Yottabyte flac

Martin Garrix. 2018. Writer: Martin Garrix.
2 Alan Walker

Diamond Heart flac

Alan Walker. 2018. Writer: Alan Walker;Sophia Somajo;Mood Melodies;James Njie;Thomas Troelsen;Kristoffer Haugan;Edvard Normann;Anders Froen;Gunnar Greve;Yann Bargain;Victor Verpillat;Fredrik Borch Olsen.
3 Sia

I'm Still Here flac

Sia. 2018. Writer: Sia.
4 Blinders

Breach (Walk Alone) flac

Blinders. 2018. Writer: Dewain Whitmore;Ilsey Juber;Blinders;Martin Garrix.
5 Dyro

Latency flac

Dyro. 2018. Writer: Martin Garrix;Dyro.
6 Cardi B

Taki Taki flac

Cardi B. 2018. Writer: Bava;Juan Vasquez;Vicente Saavedra;Jordan Thorpe;DJ Snake;Ozuna;Cardi B;Selena Gomez.
7 Bradley Cooper

Shallow flac

Bradley Cooper. 2018. Writer: Andrew Wyatt;Anthony Rossomando;Mark Ronson;Lady Gaga.
8 Halsey

Without Me flac

Halsey. 2018. Writer: Halsey;Delacey;Louis Bell;Amy Allen;Justin Timberlake;Timbaland;Scott Storch.
9 Lady Gaga

I'll Never Love Again flac

Lady Gaga. 2018. Writer: Benjamin Rice;Lady Gaga.
10 Kelsea Ballerini

This Feeling flac

Kelsea Ballerini. 2018. Writer: Andrew Taggart;Alex Pall;Emily Warren.
11 Mako

Rise flac

Mako. 2018. Writer: Riot Music Team;Mako;Justin Tranter.
12 Dewain Whitmore

Burn Out flac

Dewain Whitmore. 2018. Writer: Dewain Whitmore;Ilsey Juber;Emilio Behr;Martijn Garritsen.
13 Bradley Cooper

Always Remember Us This Way flac

Bradley Cooper. 2018. Writer: Lady Gaga;Dave Cobb.
14 Little Mix

Woman Like Me flac

Little Mix. 2018. Writer: Nicki Minaj;Steve Mac;Ed Sheeran;Jess Glynne.
15 Charli XCX

1999 flac

Charli XCX. 2018. Writer: Charli XCX;Troye Sivan;Leland;Oscar Holter;Noonie Bao.
16 Rita Ora

Let You Love Me flac

Rita Ora. 2018. Writer: Rita Ora.
17 Diplo

Electricity flac

Diplo. 2018. Writer: Diplo;Mark Ronson;Picard Brothers;Wynter Gordon;Romy Madley Croft;Florence Welch.
18 Jonas Blue

Polaroid flac

Jonas Blue. 2018. Writer: Jonas Blue;Liam Payne;Lennon Stella.
19 Lady Gaga

Look What I Found flac

Lady Gaga. 2018. Writer: DJ White Shadow;Nick Monson;Mark Nilan Jr;Lady Gaga.
20 Avril Lavigne

Head Above Water flac

Avril Lavigne. 2018. Writer: Stephan Moccio;Travis Clark;Avril Lavigne.

Related questions

Hot questions


Popular Tags