def edges
import near-architecture@0.9.1.0/arc.bend as Arcimport Base
757def edges(xs: List<&2, Link>, +s: System) -> String:
758 match xs:
759 case []:
760 ""
761 case l <> rest:
762 match l:
763 case Link{src, dst, label, live}:
764 path(src, s) ++ " -> " ++ path(dst, s) ++ ": \"" ++ label ++ "\" {class: " ++ style(live) ++ "}\n" ++ edges(rest, s)