nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.Data.visualize.Network.Layouts / Block

Block

Full name Microsoft.VisualBasic.Data.visualize.Network.Layouts.Cola.Block Assembly Microsoft.VisualBasic.Data.visualize.Network.Layouts Members 11

01 Syntax

Microsoft.VisualBasic.Data.visualize.Network.Layouts.Cola.Block

02 Methods

NameOverloadsSummary
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

NameOverloadsSummary
cost 1

04 Fields

NameOverloadsSummary
ps 1
posn 1
vars 1
blockInd 1

05 Members

method updateWeightedPosition #
updateWeightedPosition

move the block where it needs to be to minimize cost

method traverse #
traverse(Func(Of Constraint, Object), List(Of Object), Variable, Variable)

traverse the active constraint tree applying visit to each active constraint

Parameters
NameTypeDescription
visitFunc(Of Constraint, Object)

-

accList(Of Object)

-

vVariable

-

prevVariable

-

method findMinLM #
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.

method isActiveDirectedPathBetween #
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
NameTypeDescription
uVariable

-

vVariable

-

method split #
split(Constraint)

split the block into two by deactivating the specified constraint

Parameters
NameTypeDescription
CConstraint

-

method splitBetween #
splitBetween(Variable, Variable)

find a split point somewhere between the specified variables

Parameters
NameTypeDescription
vlVariable

-

vrVariable

-

field ps #
ps
field posn #
posn
field vars #
vars
field blockInd #
blockInd
property cost #
cost