18namespace layer1_foundations {
19namespace geometry_builder {
37 for (i = 0; i <
V; i++) {
48 int f_v = (verbose_level >= 1);
52 cout <<
"girth_test::init" << endl;
61 for (i = 0; i <
V; i++) {
68 cout <<
"girth_test::init done" << endl;
74 int f_v = (verbose_level >= 1);
78 cout <<
"girth_test::Floyd" << endl;
90 for (i = 0; i <
V; i++) {
91 for (j = 0; j <
V; j++) {
93 S[row][i *
V + j] = 0;
95 if (
D[row][i *
V + j] == 0) {
96 S[row][i *
V + j] = 9999;
99 S[row][i *
V + j] = 1;
107 for (k = 0; k <
V; k++) {
108 for (i = 0; i <
V; i++) {
109 for (j = 0; j <
V; j++) {
111 a =
S[row][i *
V + k] +
S[row][k *
V + j];
113 if (a <
S[row][i *
V + j] ) {
114 S[row][i *
V + j] = a;
122 cout <<
"girth_test::Floyd done" << endl;
131 for (h = 0; h <
gg->
inc->
K[j]; h++) {
143 for (h = 0; h <
gg->
inc->
K[j]; h++) {
152 int h, dim_n, j1, u1, u2, a1, a2;
153 int f_v = (verbose_level >= 1);
156 cout <<
"girth_test::check_girth_condition i = " << i <<
", j = " << j << endl;
159 for (h = 0; h < j_idx; h++) {
161 for (u1 = 0; u1 <
gg->
inc->
K[j1]; u1++) {
166 for (u2 = 0; u2 <
gg->
inc->
K[j]; u2++) {
174 if (
S[i][a1 *
V + a2] + 2 <
girth) {
176 cout <<
"girth_test::check_girth_condition reject:" << endl;
177 cout <<
"a1 = " << a1 <<
", a2 = " << a2 <<
", and nb_completed_rows = " << i << endl;
178 cout <<
"path from a1 to a2 = " <<
S[i][a1 *
V + a2] <<
", and girth = " <<
girth << endl;
186 cout <<
"girth_test::check_girth_condition OK" << endl;
193 cout <<
"S[" << i <<
"]:" << endl;
199 cout <<
"D[" << i <<
"]:" << endl;
classification of geometries with a given row-tactical decomposition
void add_incidence(int i, int j_idx, int j)
int check_girth_condition(int i, int j_idx, int j, int verbose_level)
void Floyd(int row, int verbose_level)
void delete_incidence(int i, int j_idx, int j)
void init(gen_geo *gg, int girth, int verbose_level)
int & theX_ir(int i, int r)
#define Int_vec_zero(A, B)
#define Int_matrix_print(A, B, C)
#define Int_vec_copy(A, B, C)
the orbiter library for the classification of combinatorial objects