navis.transforms.templates.TemplateRegistry.find_bridging_path¶
- TemplateRegistry.find_bridging_path(source, target, via=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, optional) – Force a specific intermediate template.
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.
- Return type:
tuple
- Returns:
path (list) – Path from source to target: [source, …, target]
transforms (list) – Transforms as [[path_to_transform, inverse], …]