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