graph classes
parsing pathGraph