SWI-Prolog Did You Know Did you know? you can turn ugraphs into graphml Search Documentation:
Predicate assoc_to_list/2