Changjian/constraint graph

@Nan-Zhang