A graph can be loaded from a text file with the format below. Whatever white character (space, tabulator, new line) can be used as a delimiter of the values.
is_directed number_of_vertices number_of_edges number_of_properties_for_vertices names_of_properties_for_vertices number_of_properties_for_edges names_of_properties_for_edges vertex_id values_of_properties vertex_id values_of_properties vertex_id values_of_properties ... vertex_id vertex_id values_of_properties vertex_id vertex_id values_of_properties vertex_id vertex_id values_of_properties ...
An one line house graph.
1 5 8 3 __x __y __z 1 __w 0 -1 1 0 1 1 1 0 2 1 -1 0 3 -1 -1 0 4 0 2 0 3 0 1.0 0 1 1.3 1 3 1.6 3 2 1.9 2 0 2.2 0 4 2.5 4 1 2.8 1 2 3.1
4 /\ 0--1 |\/| |/\| 3--2