Library for the Development and Use of Phylogenetic Network Methods
Visitor pattern interface for ModelNode traversals with typed dispatch.
Abstract base for model-node visitors. Subclasses implement one ``visit_*`` method per node kind. :meth:`visit` provides automatic dispatch by calling :pymeth:`ModelNode.get_node_type`.
Dispatch to the correct ``visit_*`` method based on node type.