Members
active_clicked :null
Contains the node that currently is selected for additional information.
attraction_strength :number
Default strong attraction strength. Between 0 and 1.
attraction_strength_weak :number
Default weak attraction strength for edges. Between 0 and 1.
bar_height
Height of the barchart.
- Source:
bar_width
Width of the barchart.
- Source:
bars
Bars of the barchart.
- Source:
(constant) deselectedBar :string
Default colour for the bar enclosing the small and larger bar.
- Source:
(constant) largeBar :string
Default colour for the larger bar.
- Source:
link_opacity :number
Default link opacity.
links
SVG group for links.
loaded_data
Loaded data.
node_radius :number
Default size of the circle representing a node.
nodes
SVG group for nodes.
paths
SVG group for bundle edges.
paths_loaded :boolean
True if edges are bundled.
prev_opacity
Contains the opacity of the selected nodes incident links.
- Source:
repulsion_strength :number
Default strong repulsion strength between two nodes.
repulsion_strength_weak :number
Default weak repulsion strength between two nodes.
simulation
Handle to the force simulation.
(constant) smallBar :string
Default colour for the smaller bar.
- Source:
x
x scale for the barcodes.
- Source:
y
y scale for the barcodes.
- Source:
Methods
addGroupLabel(name, number)
Adds a Group label for the given name with the number of elements of this group.
Parameters:
Name | Type | Description |
---|---|---|
name |
of the group | |
number |
of elements in the group |
animation()
Updates the position of nodes and links on each tick.
brushLinks(d)
Updates the link opacities.
Parameters:
Name | Type | Description |
---|---|---|
d |
id of the selected node |
bundle_Edges()
Computes the edge bundling for the current graph layout.
changeAnimate(enable)
Disables or Enables the animation of the graph optimisation process.
Parameters:
Name | Type | Description |
---|---|---|
enable |
true to show the animation |
configure_graph(settings)
Reads the settings for the dataset.
Parameters:
Name | Type | Description |
---|---|---|
settings |
for the dataset |
create_barcode(bars)
Creates the interactive barcode using the data of bars.
Parameters:
Name | Type | Description |
---|---|---|
bars |
with the stored persistent homology data |
- Source:
create_graph(data)
Creates the initial FDG and all necessary SVGs and forces.
Parameters:
Name | Type | Description |
---|---|---|
data |
used to create the graph. |
deselect_nodes()
Deselects nodes therefore removing the text and returning opacity to normal.
disablePaths()
Removes the bundled edges.
get_ph_features(nodes, links)
Computes the 0D Barcode and all necessary parameters
for the bars.
Furthermore computes the Minimum Spanning Tree
using disjointed sets (algorithm).
Parameters:
Name | Type | Description |
---|---|---|
nodes |
nodes of the graph | |
links |
edges of the graph |
- Source:
isolate(force, nodeA, nodeB) → {*}
Creates an isolated repulsion force for the nodes A and B.
Parameters:
Name | Type | Description |
---|---|---|
force |
force that is isolated for A and B | |
nodeA |
first node | |
nodeB |
second node |
noAnimation()
Lets the simulation tick 500 times and then updates nodes and link positions.
resize_graph()
Resizes the graph according to the window size.
update_attraction(value)
Function that updates which bars
are considered for additional attraction.
Parameters:
Name | Type | Description |
---|---|---|
value |
Value of the slider |
update_repulsion()
Function that updates the repulsion based on the selected bars.
updateNodesAndLinks()
Updates the position of nodes and links.
updateNodeSize(value)
Updates the size of the nodes in the graph.
Parameters:
Name | Type | Description |
---|---|---|
value |
either 'fixed' or 'dynamic' |