def edges_text
import bend-visgraph@2.0.0.0/src/report.bend as Reportimport Base
import bend-visgraph@2.0.0.0/visgraph.bend as VG
18def edges_text(+weighted: Bool, es: VG.Edges, acc: String) -> String:
19 match es:
20 case VG.ENil{}:
21 acc
22 case VG.ECon{s, t, w, next}:
23 edges_text(weighted, next, edge_line(weighted, s, t, w) ++ acc)
24 case VG.EJoin{a, b}:
25 edges_text(weighted, b, edges_text(weighted, a, acc))