Skip to content
Snippets Groups Projects
Commit cb17aef2 authored by erwan's avatar erwan
Browse files

fix: Add arrow back in dot visu for directed graphs

parent a1a021df
No related branches found
Tags v4.5.9
No related merge requests found
Pipeline #84359 passed
......@@ -160,9 +160,11 @@ let to_pdf engine par_var only_parent rn g f e =
(fun n ->
let l = g.succ n.id in
List.mapi (fun i t ->
if is_parent "par" n.id i e then
if g.directed then
Printf.sprintf "%s -> %s" t n.id
else if is_parent "par" n.id i e then
Printf.sprintf "%s -> %s" n.id t
else if n.id < t then
else if n.id < t then (* to avoid duplication in undir graphs *)
Printf.sprintf "%s -- %s" n.id t
else
Printf.sprintf "%s -- %s" t n.id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment