Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
wannesm committed Feb 11, 2024
1 parent 4887908 commit 9ca9f0b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions leuvenmapmatching/matcher/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1328,6 +1328,18 @@ def _build_node_path(self, start_idx, unique=True, max_depth=None, last_is_e=Fal
return self.node_path

def increase_max_lattice_width(self, max_lattice_width, unique=False, tqdm=None):
"""Increase the value for max_lattice_width and continue the matching with all
paths that were ignored so far (up to the new max_lattice_width).
This is useful when the matcher is first run with a small max_lattice_width
to be fast, but when the true path is not obvious and excluded from the first
guesses. When the matcher stops early, this method allows to easily expand the
search space.
:param max_lattice_width: New maximal number of paths to consider
:param unique: See match method
:param tqdm: See match method
"""
self.max_lattice_width = max_lattice_width
return self.match(self.path, unique=unique, tqdm=tqdm, expand=True)

Expand Down

0 comments on commit 9ca9f0b

Please sign in to comment.