Graph question - checking answer

Graph question - checking answer

by Phil Hackett -
Number of replies: 1
Hi all,

Does anyone know how to access the items within a students answer for Graph-UI questions?

I can see that the dictionary object is named graph and I can use graph.keys() and graph.items(). If I want to access nodes or edges to check the values, is this possible to do directly, or would it require iterating through all keys within the dictionary?

I hope this makes sense.

Best wishes,
Phil
In reply to Phil Hackett

Re: Graph question - checking answer

by Richard Lobb -
This thread finishes with code that iterates through the nodes and edges in the graph. That's the only way.