optiwindnet.repair ================== .. py:module:: optiwindnet.repair Module Contents --------------- .. py:function:: repair_routeset_path(Sʹ: networkx.Graph, A: networkx.Graph, ringed: bool = False) -> networkx.Graph This is only able to repair crossings where one of the paths is split in either a leaf and a path or a hook and a path. :param Sʹ: solution topology that contains non-branching rooted tree(s) :param A: available edges used in creating ``Sʹ`` :param ringed: rank fix choices as if both path extremes get a feeder, for topologies destined for ring form (``Sʹ`` itself must still be in single-feeder path form) :returns: Topology without the crossing in a shallow copy of ``Sʹ``.