From a198fadde08335128e58f41fb25e78586ae833f4 Mon Sep 17 00:00:00 2001 From: Enoal ADAM Date: Thu, 23 Jan 2025 12:02:54 +0100 Subject: [PATCH] Translating sentences Translating sentences from French to English --- src/graph.cpp | 6 +++--- src/includes/preprocessing.hpp | 10 +++++----- src/includes/verification.hpp | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/graph.cpp b/src/graph.cpp index 11d319e..c3817ac 100644 --- a/src/graph.cpp +++ b/src/graph.cpp @@ -5,10 +5,10 @@ #include #include -// Constructeur par défaut +// Constructor by default Graph::Graph() : adjList() {} -// Ajouter une arête au graphe +// Add an edge to the graph void Graph::add_edge(int source, int target, int weight) { if (source >= static_cast(adjList.size()) || target >= static_cast(adjList.size())) { adjList.resize(std::max(source, target) + 1); @@ -17,7 +17,7 @@ void Graph::add_edge(int source, int target, int weight) { adjList[target].emplace_back(source, weight); } -// Trouver le chemin le plus court entre deux nœuds +// Find the shortest path between two nodes std::vector Graph::shortest_path(int source, int target, int& totalTime) { constexpr int INF = std::numeric_limits::max(); diff --git a/src/includes/preprocessing.hpp b/src/includes/preprocessing.hpp index 3a4f6f4..a2aaa0b 100644 --- a/src/includes/preprocessing.hpp +++ b/src/includes/preprocessing.hpp @@ -7,12 +7,12 @@ #include /** - * @brief Prétraite les données d'un fichier CSV et les stocke dans un graphe. + * @brief Preprocess the data from a CSV file and store them in a graph. * - * @param filePath Chemin du fichier CSV. - * @param maxLines Nombre maximum de lignes à traiter (0 = toutes les lignes). - * @param graph Référence au graphe dans lequel les données sont stockées. - * @return true si le prétraitement est réussi, false sinon. + * @param filePath Path to the CSV file. + * @param maxLines Maximum number of lines to process (0 = all lines). + * @param graph Reference to the graph in which the data are stored. + * @return true if the preprocessing is successful, false otherwise. */ bool preprocess_data(const std::string& filePath, int maxLines, Graph& graph); diff --git a/src/includes/verification.hpp b/src/includes/verification.hpp index 40e0aa2..a568c9d 100644 --- a/src/includes/verification.hpp +++ b/src/includes/verification.hpp @@ -42,7 +42,7 @@ for this this code I use this different includes: #include #include -// Macros pour obfuscation +// Macros for obfuscation #define SECRET_DELIMITER ; #define QPS SECRET_DELIMITER