A weight vector for an edge between two neighboring APs consists of three elements, each of which represents the cost incurred when the channel relation between the primary channels of two neighboring vertices is ‘S’, ‘N’ and ‘F’, respectively. In other words, the first element is for the channel relation of Same, the second for Near, and the third for Far.