/p>
</dd></dl>

<p><a name="perm_005fnext"></a>
<a name="Item_003a-perm_005fnext"></a>
</p><dl>
<dt><u>Function:</u> <b>perm_next</b><i> (<var>p</var>)</i>
<a name="IDX1477"></a>
</dt>
<dd><p>Returns the permutation that comes after the given permutation <var>p</var>,
in the sequence of permutations in Trotter-Johnson order.
</p>
<p>See also <code><a href="#perms">perms</a></code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(&quot;combinatorics&quot;)$
(%i2) perm_next ([4, 6, 3, 1, 7, 5, 2, 8]);
(