public class BlossomVOptions extends Object
According to the experimental results, the greedy initialization substantially speeds up the algorithm.
Modifier and Type | Class and Description |
---|---|
static class |
BlossomVOptions.DualUpdateStrategy
Enum for choosing dual updates strategy
|
static class |
BlossomVOptions.InitializationType
Enum for types of matching initialization
|
Modifier and Type | Field and Description |
---|---|
static BlossomVOptions[] |
ALL_OPTIONS
All possible options
|
Constructor and Description |
---|
BlossomVOptions()
Constructs a default set of options for the algorithm
|
BlossomVOptions(BlossomVOptions.InitializationType initializationType)
Constructs a new options instance with a
initializationType |
BlossomVOptions(BlossomVOptions.InitializationType initializationType,
BlossomVOptions.DualUpdateStrategy dualUpdateStrategy,
boolean updateDualsBefore,
boolean updateDualsAfter)
Constructs a custom set of options for the algorithm
|
Modifier and Type | Method and Description |
---|---|
BlossomVOptions.DualUpdateStrategy |
getDualUpdateStrategy()
Returns dual updates strategy
|
BlossomVOptions.InitializationType |
getInitializationType()
Returns initialization type
|
boolean |
isUpdateDualsAfter()
Returns the
updateDualsAfter flag |
boolean |
isUpdateDualsBefore()
Returns the
updateDualsBefore flag |
String |
toString() |
public static final BlossomVOptions[] ALL_OPTIONS
public BlossomVOptions(BlossomVOptions.InitializationType initializationType, BlossomVOptions.DualUpdateStrategy dualUpdateStrategy, boolean updateDualsBefore, boolean updateDualsAfter)
dualUpdateStrategy
- greedy strategy to update dual variables globallyinitializationType
- strategy for initializing the matchingupdateDualsBefore
- whether to update duals of the tree before growthupdateDualsAfter
- whether to update duals of the tree after growthpublic BlossomVOptions(BlossomVOptions.InitializationType initializationType)
initializationType
initializationType
- defines a strategy to use to initialize the matchingpublic BlossomVOptions()
public boolean isUpdateDualsBefore()
updateDualsBefore
flagupdateDualsBefore
public boolean isUpdateDualsAfter()
updateDualsAfter
flagupdateDualsAfter
public BlossomVOptions.DualUpdateStrategy getDualUpdateStrategy()
public BlossomVOptions.InitializationType getInitializationType()
Copyright © 2018. All rights reserved.