fc">&nbsp;                .V().hasLabel(&quot;D&quot;).repeat(__.in()).emit().times(2).path();</b>
<b class="fc">&nbsp;        Assert.assertEquals(4, traversal1.getSteps().size());</b>
<b class="fc">&nbsp;        paths = traversal1.toList();</b>
<b class="fc">&nbsp;        Assert.assertEquals(2, traversal1.getSteps().size());</b>
<b class="fc">&nbsp;        Assert.assertEquals(2, paths.size());</b>
<b class="pc">&nbsp;        Assert.assertTrue(paths.stream().anyMatch(p -&gt; p.size() == 2 &amp;&amp; p.get(0