place pattern generation function to neuron.py
do not draw nodes other than origin node