handleDisconnected
01 Syntax
Microsoft.VisualBasic.Data.visualize.Network.Layouts.Cola.handleDisconnected
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| 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
| Name | Overloads | Summary |
|---|---|---|
| get_real_ratio | 1 |
04 Members
calculate_bb(
List(Of Graph), Double)get bounding boxes for all separate graphs
Parameters
| Name | Type | Description |
|---|---|---|
graphs | List(Of Graph) | - |
apply(
List(Of Graph), Double)starts box packing algorithm, desired ratio is 1 by default
Parameters
| Name | Type | Description |
|---|---|---|
data | List(Of Graph) | - |
desired_ratio | Double | - |
put_nodes_to_right_positions(
List(Of Graph))actual assigning of position to nodes
Parameters
| Name | Type | Description |
|---|---|---|
graphs | List(Of Graph) | - |
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
| Name | Type | Description |
|---|---|---|
graphs | List(Of Graph) | - |
w | Int32 | - |
h | Int32 | - |
node_size | Nullable(Of Double) | - |
desired_ratio | Nullable(Of Int32) | - |
centerGraph | Boolean | - |
separateGraphs(
Object, Link(Of Node)())connected components of graph, returns an array of {}
Parameters
| Name | Type | Description |
|---|---|---|
nodes | Object | - |
links | Link(Of Node)() | - |
get_real_ratio