Block
01 Syntax
Microsoft.VisualBasic.Data.visualize.Network.Layouts.Cola.Block
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| updateWeightedPosition | 1 | move the block where it needs to be to minimize cost |
| traverse | 1 | traverse the active constraint tree applying visit to each active constraint |
| findMinLM | 1 | Calculate lagrangian multipliers on constraints And find the active constraint in this block with the smallest lagrangian. |
| isActiveDirectedPathBetween | 1 | Search active constraint tree from u to see if there Is a directed path to v. |
| split | 1 | split the block into two by deactivating the specified constraint |
| splitBetween | 1 | find a split point somewhere between the specified variables |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| cost | 1 |
04 Fields
05 Members
updateWeightedPosition
move the block where it needs to be to minimize cost
traverse(
Func(Of Constraint, Object), List(Of Object), Variable, Variable)traverse the active constraint tree applying visit to each active constraint
Parameters
| Name | Type | Description |
|---|---|---|
visit | Func(Of Constraint, Object) | - |
acc | List(Of Object) | - |
v | Variable | - |
prev | Variable | - |
findMinLM
Calculate lagrangian multipliers on constraints And find the active constraint in this block with the smallest lagrangian. if the lagrangian Is negative, then the constraint Is a split candidate.
isActiveDirectedPathBetween(
Variable, Variable)Search active constraint tree from u to see if there Is a directed path to v. Returns true if path Is found.
Parameters
| Name | Type | Description |
|---|---|---|
u | Variable | - |
v | Variable | - |
split(
Constraint)split the block into two by deactivating the specified constraint
Parameters
| Name | Type | Description |
|---|---|---|
C | Constraint | - |
splitBetween(
Variable, Variable)find a split point somewhere between the specified variables
Parameters
| Name | Type | Description |
|---|---|---|
vl | Variable | - |
vr | Variable | - |
ps
posn
vars
blockInd
cost