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
This forum has a limit to the number of forum postings you can make in a given time period - this is currently set at 5 posting(s) in 1 day