Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Grufoony committed Feb 18, 2025
1 parent 7d8f97d commit edb9528
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion benchmark/Adj/BenchAdj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ int main() {
graph.importOSMNodes("../test/data/forlì_nodes.csv");
graph.importOSMEdges("../test/data/forlì_edges.csv");
graph.buildAdj();
auto const& adj{graph.adjMatrix()};
auto const& adj{graph.adjacencyMatrix()};
auto const N{adj.n()};
SparseMatrix<bool> sm(N, N);
for (const auto& [srcId, dstId] : adj.elements()) {
Expand Down
2 changes: 1 addition & 1 deletion examples/slow_charge_rb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ int main(int argc, char** argv) {
std::cerr << "Street " << id << " is not a spire.\n";
}
}
const auto& adj = graph.adjMatrix();
const auto& adj = graph.adjacencyMatrix();
auto const degreeVector = adj.getOutDegreeVector();

std::cout << "Setting roundabouts parameters..." << '\n';
Expand Down
6 changes: 3 additions & 3 deletions examples/slow_charge_tl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ int main(int argc, char** argv) {
std::cerr << "Street " << id << " is not a spire.\n";
}
}
auto const degreeVector = graph.adjMatrix().getOutDegreeVector();
auto const degreeVector = graph.adjacencyMatrix().getOutDegreeVector();
// create gaussian random number generator
std::random_device rd;
std::mt19937 gen(rd());
Expand All @@ -178,7 +178,7 @@ int main(int argc, char** argv) {
while (value < 0.) {
value = random();
}
const auto& col = graph.adjMatrix().getCol(nodeId);
const auto& col = graph.adjacencyMatrix().getCol(nodeId);
std::set<Unit> streets;
const auto& refLat = node->coords().value().first;
for (const auto& id : col) {
Expand Down Expand Up @@ -208,7 +208,7 @@ int main(int argc, char** argv) {
std::cout << "Creating dynamics...\n";

Dynamics dynamics{graph, true, SEED, 0.6};
auto const& adj{dynamics.graph().adjMatrix()};
auto const& adj{dynamics.graph().adjacencyMatrix()};
Unit n{0};
{
std::vector<Unit> destinationNodes;
Expand Down

0 comments on commit edb9528

Please sign in to comment.