Hi Frank, The direction in a graph is specified by 'cost' and 'reverse_cost' columns and have nothing to do with 'assign_vertex_id' function. Please check this - http://www.pgrouting.org/docs/howto/topology.html#graphs-directed-undirected-reverse-costs Cheers, Anton.