A distributed, varying degree neural network framework