Edge detection is a two-stage process: edge enhancement followed by edge linking. In this paper we develop a linking algorithm for the combination of edge elements enhanced by an optimal filter. The linking algorithm is based on sequential search. From a starting node, transitions are made to the goal nodes based on a maximum likelihood metric. Results of our search algorithm are compared to the nonmaximal suppression approach, as well as to the sequential edge linking algorithm. It is shown that the metric described here is very easy to implement and provides more accurate results.