diff --git a/benchmark/Utilities.hpp b/benchmark/Utilities.hpp index 4cdc5055d..17736c17b 100644 --- a/benchmark/Utilities.hpp +++ b/benchmark/Utilities.hpp @@ -83,9 +83,9 @@ static CXXGraph::Graph *readGraph(const std::string &filename) { // Static Generation -static auto nodes = generateRandomNodes(100000, 2); -static auto edges = generateRandomEdges(100000, nodes); -static auto undirectedEdges = generateRandomUndirectedEdges(100000, nodes); -static auto cit_graph_ptr = readGraph("CitHepPh"); +static const auto nodes = generateRandomNodes(100000, 2); +static const auto edges = generateRandomEdges(100000, nodes); +static const auto undirectedEdges = generateRandomUndirectedEdges(100000, nodes); +static const auto cit_graph_ptr = readGraph("CitHepPh"); #endif // __UTILITIES_H__ diff --git a/examples/PartitionExample/partition_example.cpp b/examples/PartitionExample/partition_example.cpp index 75e3cbd8a..c7238c049 100644 --- a/examples/PartitionExample/partition_example.cpp +++ b/examples/PartitionExample/partition_example.cpp @@ -13,7 +13,7 @@ static CXXGraph::Graph *readGraph(const std::string &filename) { return graph_ptr; } -static auto cit_graph_ptr = readGraph("CitHepPh"); +static const auto cit_graph_ptr = readGraph("CitHepPh"); int main() { // std::cout << *cit_graph_ptr << std::endl; diff --git a/test/PartitionTest.cpp b/test/PartitionTest.cpp index cb6fb924e..28d0b072f 100644 --- a/test/PartitionTest.cpp +++ b/test/PartitionTest.cpp @@ -13,8 +13,8 @@ using shared = std::shared_ptr; using std::make_shared; using std::make_unique; -static auto nodes = generateRandomNodes(10000, 2); -static auto edges = generateRandomEdges(10000, nodes); +static const auto nodes = generateRandomNodes(10000, 2); +static const auto edges = generateRandomEdges(10000, nodes); TEST(PartitionTest, test_1) { CXXGraph::Node node1("1", 1); diff --git a/test/RWOutputTest.cpp b/test/RWOutputTest.cpp index ee492d325..9e59eaf59 100644 --- a/test/RWOutputTest.cpp +++ b/test/RWOutputTest.cpp @@ -52,8 +52,8 @@ generateRandomEdges( return edges; } -static auto nodes = generateRandomNodes(10000, 2); -static auto edges = generateRandomEdges(10000, nodes); +static const auto nodes = generateRandomNodes(10000, 2); +static const auto edges = generateRandomEdges(10000, nodes); //************* CSV ***************//