Hierarchial Neural Network

I need to build a reccomendation system does it need hierarchial neural network or not?
Like:
Segement is the main node it should have product and user link and also user have link to product.