GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
<Chapter><Heading>Introduction</Heading>12Token passing networks (TPNs) are directed graphs with nodes that can hold at most one token. Also3each graph has a designated input node, which generates an ordered sequence of numbered tokens and4a designated output node that collects the tokens in the order they arrive at it. The input node5has no incoming edges, whereas the output node has no outgoing edges. A token <M>t</M> travels through the6graph, from node to node, if there is an edge connecting the nodes, if the node the token is moving7from is either the input node and the tokens <M>1, \ldots, t-1</M> have been released or the node is not8the output node, and lastly if the destination node contains no token or it is the output node. <Cite Key="PermGenTPGraph" /> <P/>9The set of permutations resulting from a TPN is closed under the property of containment. A permutation10<M>a</M> contains a permutation <M>b</M> of shorter length if in <M>a</M> there is a subsequence11that is isomorphic to <M>b</M>. This class of permutations can be represented by its anti-chain, which12in this context is called the basis. <Cite Key="RegCloSetPerms"/> <P/>13To enhance the computability of permutation pattern classes, each permutation can be encoded, using the14so called rank encoding. For a permutation <M>p_{1} \ldots p_{n}</M>, it is the sequence15<M>e_{1}\ldots e_{n}</M> where <M>e_{i}</M> is the rank of <M>p_{i}</M> among <M>\{p_{i},p_{i+1},\ldots,p_{n}\}</M>.16It can be shown that the sets of encoded permutations of the class and the basis, both are a rational languages.17Rational languages can be represented by automata. <Cite Key="RegCloSetPerms"/> <P/>18There is another approach to get from TPNs to their corresponding automata. Namely building equivalence classes from19TPNs using the different dispositions of tokens within them. These equivalence classes of dispositions20and the rank encoding of the permutations allow to build the same rational language as from the process above.21<Cite Key="PermGenTPGraph" />222324252627</Chapter>28293031