spinetoolbox.spine_db_editor.widgets.graph_layout_generator

Contains the GraphViewMixin class.

author:
  1. Marin (KTH)
date:

26.11.2018

Module Contents

Classes

_State State of GraphLayoutGenerator.
ProgressBarWidget
GraphLayoutGenerator Computes the layout for the Entity Graph View.

Functions

make_heat_map(x, y, values)
spinetoolbox.spine_db_editor.widgets.graph_layout_generator.make_heat_map(x, y, values)[source]
class spinetoolbox.spine_db_editor.widgets.graph_layout_generator._State[source]

Bases: enum.Enum

State of GraphLayoutGenerator.

Create and return a new object. See help(type) for accurate signature.

ACTIVE[source]
STOPPED[source]
CANCELLED[source]
class spinetoolbox.spine_db_editor.widgets.graph_layout_generator.ProgressBarWidget(layout_generator, parent)[source]

Bases: PySide2.QtWidgets.QWidget

paintEvent(self, event)[source]
class spinetoolbox.spine_db_editor.widgets.graph_layout_generator.GraphLayoutGenerator(vertex_count, src_inds, dst_inds, spread, heavy_positions=None, iterations=10, weight_exp=-2)[source]

Bases: PySide2.QtCore.QObject

Computes the layout for the Entity Graph View.

finished[source]
started[source]
progressed[source]
done[source]
show_progress_widget(self, parent)[source]
clean_up(self)[source]
stop(self)[source]
cancel(self, checked=False)[source]
start(self)[source]
shortest_path_matrix(self)[source]

Returns the shortest-path matrix.

sets(self)[source]

Returns sets of vertex pairs indices.

emit_finished(self, x, y)[source]
get_coordinates(self)[source]

Computes and returns x and y coordinates for each vertex in the graph, using VSGD-MS.