PhyNetPy Documentation

Library for the Development and Use of Phylogenetic Network Methods

Strategy Module v1.0.0

Strategy pattern interface for node-level computations dispatched during bottom-up traversal.

Author:
Mark Kessler
Source:
Strategy.py

Contents

Strategy

class Strategy(ABC)

Abstract base for model-node computation strategies. Subclasses must implement one method per node kind. The ``ModelNode`` dispatch layer calls the matching method automatically during traversal.

Methods

compute_at_leaf(n: ModelNode) -> None abstract
compute_at_internal(n: ModelNode) -> None abstract
compute_at_reticulation(n: ModelNode) -> None abstract
compute_at_root(n: ModelNode) -> None abstract

Navigation

Modules

This Page