Magical method to assert structure of the nodes in graph.