summaryrefslogtreecommitdiff
path: root/src/data/graph.cpp
diff options
context:
space:
mode:
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;