summaryrefslogtreecommitdiff
path: root/lib/src
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2020-04-05 22:22:11 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2020-04-05 22:22:11 -0400
commit30e0d337eb9376d424ca6b02b0028298f24c38dc (patch)
tree4c88e1bed073e20522358b223bb0e65aa5b57cd5 /lib/src
parent880df6024e143de15e86dc216f885e367be05d7a (diff)
downloadfuse_networks-30e0d337eb9376d424ca6b02b0028298f24c38dc.tar.gz
fuse_networks-30e0d337eb9376d424ca6b02b0028298f24c38dc.tar.bz2
fuse_networks-30e0d337eb9376d424ca6b02b0028298f24c38dc.zip
Add Lx and Ly to graph data output.
Diffstat (limited to 'lib/src')
-rw-r--r--lib/src/graph.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/src/graph.cpp b/lib/src/graph.cpp
index a84084f..1426609 100644
--- a/lib/src/graph.cpp
+++ b/lib/src/graph.cpp
@@ -482,6 +482,7 @@ graph const graph::rotate() {
std::string graph::write() const {
std::string output;
+ output += "\"Lx\"->" + std::to_string(L.x) + ",\"Ly\"->" + std::to_string(L.y) + ",";
output += "\"vr\"->{";
for (const graph::vertex &v : vertices) {
output += "{" + std::to_string(v.r.x) + "," + std::to_string(v.r.y) + "},";