pylibmgm.SequentialGenerator

class pylibmgm.SequentialGenerator

Sequential solution generator for multi-graph matching.

Constructs a solution by sequentially matching graphs one at a time, maintaining cycle consistency at each step.

Methods

__init__(model)

Initialize sequential generator.

generate()

Generate a complete solution.

init(order)

Initialize the generator with a matching order.

step()

Perform a single step of the generation process.

__init__(model: pylibmgm.MgmModel) None

Initialize sequential generator.

Parameters:

model (MgmModel) – The MGM model to solve.

generate() pylibmgm.MgmSolution

Generate a complete solution.

Returns:

Generated cycle-consistent solution.

Return type:

MgmSolution

init(order: pylibmgm.MgmGenerator.matching_order) List[int]

Initialize the generator with a matching order.

Parameters:

order (MgmGenerator.matching_order) – Order to match graphs (sequential or random).

Returns:

Sequence of graph IDs to be matched.

Return type:

list[int]

step() None

Perform a single step of the generation process. Match the next graph in the matching order.