Creating the custom url aliases for nodes?
You can use the Path Auto module for this purpose. It has many patterns options for each content type. 

You can generate alises pattern for child articles and parent article separately.
I have added a screenshot that how it looks in the back end.

If it does not fulfill your requirement then we can customize the urls on saving with hook_url_inbound_alter() function in our custom module.