So I was using graphviz and wrote the following piece:
digraph MyGraph {
rankdir=TB;
size="8,5";
node [shape = circle]; 1 2 3 4 5 6 7 8 9 r
1->4
1->4
1->5
1->5
2->6
2->6
2->7
2->7
3->8
3->8
3->9
3->9
4->1
4->1
4->5
4->5
5->1
5->1
5->4
5->4
6->2
6->2
6->7
6->7
7->2
7->2
7->6
7->6
8->3
8->3
8->9
8->9
9->3
9->3
9->8
9->8
r->1
r->1
r->1
r->2
r->2
r->2
r->3
r->3
}
I don't like it that the edges overlap (meet). Is there any way to solve it automatically? if no, how to do it manually?
I was trying to use overlap = false; but it didn't change anything.
Also, tikzpicture could do the trick but I'm not sure how to do it.
Furthermore, I tried to search some previous thread but they asked for different things.


2->6:w 2->6 2:sw->7:nw 2:w->7:w. – Marijn Jan 30 '19 at 02:17\documentclass[tikz,border=3.14mm]{standalone} \usetikzlibrary{graphs,graphdrawing} \usegdlibrary{layered} \begin{document} \begin{tikzpicture} \graph [layered layout, sibling distance=2cm, level distance=2cm, nodes={draw,circle,minimum size=1cm}] { r -> {1 -> 4 [xshift=-1cm] -> 5, 2 -> 6 -> 7 [xshift=0.5cm], 3 -> 8 -> 9 [xshift=0.5cm]}; }; \end{tikzpicture} \end{document}compiled withlualatexproduces some similar graph (but not the arrows, which could be added). – Jan 30 '19 at 02:53pythontexfor example) but it is not on-topic to ask about how to program in Python. – Marijn Jan 30 '19 at 21:04