Imported from https://github.com/BaoWangMath/Graph-Structured-Recurrent-Neural-Nets-