We give a linear time algirithm which, given a simply connected figure of the plane divided into cells, whose boundary is crossed by some colored inputs and outputs, produces non-intersecting directed flow lines which matech inputs and outputs according to the colors, in such a way that each edge of any cell is crossed by at most one line. The main tool is the notion of height function, previously introduced for the tilings. This notion appears as the extension of the nation of potential of a flow in a planar graph.
展开▼