spinetoolbox.spine_db_editor.widgets.graph_layout_generator

Contains the GraphViewMixin class.

author
  1. Marin (KTH)

date

26.11.2018

Module Contents

Classes

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.ProgressBarWidget(layout_generator)[source]

Bases: PySide2.QtWidgets.QWidget

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

Bases: PySide2.QtCore.QRunnable

Computes the layout for the Entity Graph View.

class Signals[source]

Bases: PySide2.QtCore.QObject

finished[source]
layout_available[source]
progressed[source]
msg[source]
show_progress_widget(self, parent)[source]
stop(self, _checked=False)[source]
set_show_previews(self, checked)[source]
emit_layout_available(self, x, y)[source]
emit_finished(self)[source]
shortest_path_matrix(self)[source]

Returns the shortest-path matrix.

sets(self)[source]

Returns sets of vertex pairs indices.

run(self)[source]

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