Recognizing sets of labelled acyclic graphs