summaryrefslogtreecommitdiff
path: root/src/data/graph.cpp
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2018-09-23 12:30:08 +0200
committerAleks Kissinger <aleks0@gmail.com>2018-09-23 12:30:08 +0200
commitfa3d7da179b25d2ece40b56f5f9adddb3831906e (patch)
treed72e9857113920d6aeda060ec43b4dc83c4ea26f /src/data/graph.cpp
parent1ca36f064da2a3619f0f8058f48e9f9dc6d07436 (diff)
added reordering of nodes and edges
Diffstat (limited to 'src/data/graph.cpp')
-rw-r--r--src/data/graph.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/data/graph.cpp b/src/data/graph.cpp
index 2c9a84e..b63289b 100644
--- a/src/data/graph.cpp
+++ b/src/data/graph.cpp
@@ -85,6 +85,16 @@ int Graph::maxIntName()
return max;
}
+void Graph::reorderNodes(const QVector<Node *> &newOrder)
+{
+ _nodes = newOrder;
+}
+
+void Graph::reorderEdges(const QVector<Edge *> &newOrder)
+{
+ _edges = newOrder;
+}
+
QRectF Graph::realBbox()
{
//float maxX = 0.0f;