Recursive networks for processing graphs with labelled edges