Fixed NetworkElementFactory

The getDataLinks was not able to
detect when the node calling is
the node parent.