A General Deep Learning Framework For Network