nuget server logo nuget api documents
↑

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

handleDisconnected

Full name Microsoft.VisualBasic.Data.visualize.Network.Layouts.Cola.handleDisconnected Assembly Microsoft.VisualBasic.Data.visualize.Network.Layouts Members 6

01 Syntax

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

02 Methods

NameOverloadsSummary
calculate_bb 1 get bounding boxes for all separate graphs
apply 1 starts box packing algorithm, desired ratio is 1 by default
put_nodes_to_right_positions 1 actual assigning of position to nodes
applyPacking 1 assign x, y to nodes while using box packing algorithm for disconnected graphs
separateGraphs 1 connected components of graph, returns an array of {}

03 Properties

NameOverloadsSummary
get_real_ratio 1

04 Members

method calculate_bb #
calculate_bb(List(Of Graph), Double)

get bounding boxes for all separate graphs

Parameters
NameTypeDescription
graphsList(Of Graph)

-

method apply #
apply(List(Of Graph), Double)

starts box packing algorithm, desired ratio is 1 by default

Parameters
NameTypeDescription
dataList(Of Graph)

-

desired_ratioDouble

-

method put_nodes_to_right_positions #
put_nodes_to_right_positions(List(Of Graph))

actual assigning of position to nodes

Parameters
NameTypeDescription
graphsList(Of Graph)

-

method applyPacking #
applyPacking(List(Of Graph), Int32, Int32, Nullable(Of Double), Nullable(Of Int32), Boolean)

assign x, y to nodes while using box packing algorithm for disconnected graphs

Remarks

这个函数是整个计算流程的起始函数

Parameters
NameTypeDescription
graphsList(Of Graph)

-

wInt32

-

hInt32

-

node_sizeNullable(Of Double)

-

desired_ratioNullable(Of Int32)

-

centerGraphBoolean

-

method separateGraphs #
separateGraphs(Object, Link(Of Node)())

connected components of graph, returns an array of {}

Parameters
NameTypeDescription
nodesObject

-

linksLink(Of Node)()

-

property get_real_ratio #
get_real_ratio