phylox.generators.lgt.base.lgt

phylox.generators.lgt.base.lgt(net, leaf1, leaf2)

Adds a ‘lateral gene transfer’ to the network between leaves leaf1 and leaf2. This is done by adding an outgoing edge to each of the leaf nodes and adding an edge between these nodes as well.

Parameters:
  • net – a phylox DiNetwork

  • leaf1 – a leaf of the network net

  • leaf2 – a leaf of the network net

Returns:

None