Using a query like the following
g.V().has(\'person\',\'name\',\'marko\'). fold(). coalesce(unfold(), addV(\'person\').p