In this paper, we investigate how to assign source-relay pairs to achieve cooperative diversity for multi-source and multi-relay wireless networks. The problem of interest is formulated as a matching problem which can be modeled by a two-sided one-to