Matching parent graphs with their equations