Scilab function

best_match - best matching of a graph

Calling Sequence

[card,match] = best_match(g)

Parameters

Description

best_match finds an optimal matching for the graph g. The output are card and the vector match. card is the cardinality of an optimal matching. match(i) is the node adjacent to node i in the optimal matching or 0 if i is unmatched.

Examples

See Also