Euler circuit
From one point onwards, the edges of the graph pass through once, then back to the starting point, so that the path is the Euler loop.
It's a Euro-pull loop.
Euler Loop Determination
But what kind of diagram is there in the euro-pull circuit?
Euler loops are divided into both the graph and the non-graphic two types:
- The direction graph: a little in the figure is equal to the degree of the degree
- No map: The number of degrees in a graph is even
That's a good idea, but you might want to ask, how do you know if there's a euro-loop in a hybrid diagram?
Euler Circuit of mixed graphs
Process:
- The non-directed edges are arbitrarily oriented first
- Determine the degree and the degree of each point is not the same parity, the difference is no solution
- A point with a super origin that is less than the degree of the entry is connected to the side of a capacity of \ ({| degrees-out | \over 2}\)
A point with a super-sink point that is greater than the degree of penetration, with a capacity of ({| In-degrees-out | \over 2}\) side
- Connect another direction edge of the original without an edge to the diagram with a capacity of 1
- Run the maximum flow, determine whether the side with S is full flow, the full flow has a solution
PS: In fact, it is very good to understand, in fact, the original direction of non-directional adjustment, so that each point into the degree is equal to the degree. Each point needs to be adjusted ({| In degrees-out of | \over 2}\) times, so the capacity of the edge is \ ({| In-out | \over 2}\).
As we flow through an edge, the two-side capacity is reduced by one, which is equivalent to the process of adjusting the edge.
Euler circuit of the euro-pull circuit and mixed graph