How to construct CPM network