vec2graph
