This thread finishes with code that iterates through the nodes and edges in the graph. That's the only way.
Forum
Question Authors' Forum
Graph question - checking answer
Für dieses Forum ist eine Höchstzahl von Beiträgen innerhalb eines bestimmten Zeitraums festgelegt worden. Dies gilt nach 5 Beiträgen innerhalb von 1 Tag