Skip to content

Commit 0932f8a

Browse files
committed
changes after review 2
1 parent d1ca784 commit 0932f8a

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ cuBool based graph analysis algorithms
66
regular_path_query - Single-Source Regular Path Query Algorithm in Terms of Linear Algebra
77

88
# Run tests
9+
cuBoolGraph supports Linux-based OS (tested on Ubuntu 24.04 and Manjaro 6.19).
10+
For building project are required gcc version 14 and later, CMake with version 3.25 and later, CUDA developing toolkint version 12.0 and later.
11+
12+
For build and run tests execute commands
913
```
1014
git submodule update --init --recursive
1115
cmake -B build -DCUBOOL_GRAPH_ENABLE_TESTING=ON

include/regular_path_query.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
cuBool_Matrix regular_path_query_with_transposed(
66
// vector of sparse graph matrices for each label
77
const std::vector<cuBool_Matrix> &graph, const std::vector<cuBool_Index> &source_vertices,
8-
// vector of sparse automat matrices for each label
8+
// vector of sparse automaton matrices for each label
99
const std::vector<cuBool_Matrix> &automaton, const std::vector<cuBool_Index> &start_states,
10-
// transposed matrices for graph and automat
10+
// transposed matrices for graph and automaton
1111
const std::vector<cuBool_Matrix> &graph_transposed,
1212
const std::vector<cuBool_Matrix> &automaton_transposed,
1313

@@ -16,7 +16,7 @@ cuBool_Matrix regular_path_query_with_transposed(
1616
cuBool_Matrix regular_path_query(
1717
// vector of sparse graph matrices for each label
1818
const std::vector<cuBool_Matrix> &graph, const std::vector<cuBool_Index> &source_vertices,
19-
// vector of sparse automat matrices for each label
19+
// vector of sparse automaton matrices for each label
2020
const std::vector<cuBool_Matrix> &automaton, const std::vector<cuBool_Index> &start_states,
2121

2222
const std::vector<bool> &inversed_labels = {}, bool all_labels_are_inversed = false);

src/regular_path_query.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ cuBool_Matrix regular_path_query_with_transposed(
3838
}
3939
}
4040

41-
// get number of automat nodes
41+
// get number of automaton nodes
4242
for (auto label_matrix : automaton) {
4343
if (label_matrix != nullptr) {
4444
cuBool_Matrix_Nrows(label_matrix, &automaton_nodes_number);
@@ -126,7 +126,7 @@ cuBool_Matrix regular_path_query_with_transposed(
126126
cuBool_Matrix regular_path_query(
127127
// vector of sparse graph matrices for each label
128128
const std::vector<cuBool_Matrix> &graph, const std::vector<cuBool_Index> &source_vertices,
129-
// vector of sparse automat matrices for each label
129+
// vector of sparse automaton matrices for each label
130130
const std::vector<cuBool_Matrix> &automaton, const std::vector<cuBool_Index> &start_states,
131131
// work with inverted labels
132132
const std::vector<bool> &inversed_labels_input, bool all_labels_are_inversed) {
@@ -153,7 +153,7 @@ cuBool_Matrix regular_path_query(
153153
assert(status == CUBOOL_STATUS_SUCCESS);
154154
}
155155

156-
// transpose automat matrices
156+
// transpose automaton matrices
157157
std::vector<cuBool_Matrix> automaton_transposed;
158158
automaton_transposed.reserve(automaton.size());
159159
for (auto label_matrix : automaton) {

tests/rpq_tests.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,6 @@ static std::string get_path(std::string_view file) {
157157

158158
TEST(RPQ, Tests) {
159159
std::vector<Config> configs {
160-
{
161-
.graph_data = {get_path("5/graph_a.mtx"), get_path("5/graph_b.mtx")},
162-
.automaton_data = {get_path("5/automat_a.mtx"), get_path("5/automat_b.mtx")},
163-
.sources = {1},
164-
.expexted = get_path("5/expected.txt"),
165-
},
166160
{
167161
.graph_data = {get_path("a.mtx"), get_path("b.mtx")},
168162
.automaton_data {get_path("1/a.mtx"), ""},
@@ -187,6 +181,12 @@ TEST(RPQ, Tests) {
187181
.sources = {4},
188182
.expexted = get_path("4/expected.txt"),
189183
},
184+
{
185+
.graph_data = {get_path("5/graph_a.mtx"), get_path("5/graph_b.mtx")},
186+
.automaton_data = {get_path("5/automaton_a.mtx"), get_path("5/automaton_b.mtx")},
187+
.sources = {1},
188+
.expexted = get_path("5/expected.txt"),
189+
},
190190
};
191191

192192
for (const auto &config : configs) {

tests/test_data/62.mtx

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)