1. fix some bugs in graphsimplifier 2. remove some time costed code 3. add shape check for graphsimplifier