Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions benchmark/Utilities.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ static CXXGraph::Graph<int> *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__
2 changes: 1 addition & 1 deletion examples/PartitionExample/partition_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ static CXXGraph::Graph<int> *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;
Expand Down
4 changes: 2 additions & 2 deletions test/PartitionTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ using shared = std::shared_ptr<T>;
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<int> node1("1", 1);
Expand Down
4 changes: 2 additions & 2 deletions test/RWOutputTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ***************//

Expand Down
Loading