4.18.2 DefaultMAReader class

This class is derived from the MAReader class and implements the callback methods which build the graph in memory using the helper classes (Node, etc.). You may derive from this class and only implement the end() callback to process the graph. All nodes of the graph can be found in the nodelist attribute.

class DefaultMAReader( )
Creates an instance of the reader.

nodelist
This list will contain all Node objects that have been created. The order is the same as they have been encountered in the file.

findNode( path, create=False)
Return the Node object corresponding to a particular path. path may also be None in which case None is returned. If create is True, any missing node is automatically created.