navis.transforms.templates.TemplateRegistry.find_bridging_path¶
- TemplateRegistry.find_bridging_path(source, target, via=None, avoid=None, reciprocal=True)[source]¶
Find bridging path from source to target.
- Parameters:
source (str) – Source from which to transform to
target
.target (str) – Target to which to transform to.
via (str | list thereof, optional) – Force specific intermediate template(s).
avoid (str | list thereof, optional) – Avoid going through specific intermediate template(s).
reciprocal (bool | float) – If True or float, will add forward and inverse edges for transforms that are invertible. If float, the inverse edges’ weights will be scaled by that factor.
- Returns:
path (list) – Path from source to target: [source, …, target]
transforms (list) – Transforms as [[path_to_transform, inverse], …]