Commit cb17aef2 authored by erwan's avatar erwan
Browse files

fix: Add arrow back in dot visu for directed graphs

parent a1a021df
Pipeline #84359 passed with stages
in 3 minutes and 35 seconds
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment