diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/brandes.cc | 2 | ||||
-rw-r--r-- | src/parse.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/brandes.cc b/src/brandes.cc index 7c7d529..809ccd4 100644 --- a/src/brandes.cc +++ b/src/brandes.cc @@ -18,7 +18,7 @@ int main(int argc, char *argv[]) { Parser parser(input_file); - Graph graph = parser.get_graph(); + const Graph &graph = parser.get_graph(); return 0; } diff --git a/src/parse.h b/src/parse.h index 3f86eec..ec86302 100644 --- a/src/parse.h +++ b/src/parse.h @@ -15,7 +15,7 @@ public: } } - Graph get_graph() { + const Graph & get_graph() { return graph_; } private: |