Graph.traversal().V().hasLabel(&quot;Man&quot;).toList();</b>
<b class="fc">&nbsp;        List&lt;Vertex&gt; females = this.sqlgGraph.traversal().V().hasLabel(&quot;Female&quot;).toList();</b>
<b class="fc">&nbsp;        for (Vertex man : men) {</b>
<b class="fc">&nbsp;            SqlgVertex female = (SqlgVertex) females.get(count++);</b>
<b class="fc">&nbsp;            ((SqlgVertex)man).streamEdge(&quot;married&quot;, female);</b>
&nbsp;        }
<b class="fc">&nbsp;        this.sqlgGraph.tx().commit();</b