Description: Define the set of all walks (in a pseudograph), called "simple walks" in
the following.
According to Wikipedia ("Path (graph theory)",
https://en.wikipedia.org/wiki/Path_(graph_theory) , 3-Oct-2017): "A
walk of length k in a graph is an alternating sequence of vertices and
edges, v0 , e0 , v1 , e1 , v2 , ... , v(k-1) , e(k-1) , v(k) which
begins and ends with vertices. If the graph is undirected, then the
endpoints of e(i) are v(i) and v(i+1)."
According to Bollobas: " A walk W in a graph is an alternating sequence
of vertices and edges x0 , e1 , x1 , e2 , ... , e(l) , x(l) where e(i) =
x(i-1)x(i), 0Bollobas p. 4.
Therefore, a walk can be represented by two mappings f from { 1 , ... ,
n } and p from { 0 , ... , n }, where f enumerates the (indices of the)
edges, and p enumerates the vertices. So the walk is represented by the
following sequence: p(0) e(f(1)) p(1) e(f(2)) ... p(n-1) e(f(n)) p(n).
Although this definition is also applicable for arbitrary hypergraphs,
it allows only walks consisting of not proper hyperedges (i.e. edges
connecting at most two vertices). Therefore, it should be used for
pseudographs only. (Contributed by Alexander van der Vekens and Mario
Carneiro, 4-Oct-2017)(Revised by AV, 28-Dec-2020)