2024-09-26 14:32:20 +02:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <time.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
2024-10-04 13:05:02 +02:00
|
|
|
void random_adjacency(const uint64_t vertex_count, uint64_t matrix[vertex_count][vertex_count]) {
|
2024-10-04 01:03:39 +02:00
|
|
|
|
2024-09-26 14:32:20 +02:00
|
|
|
srand(time(NULL));
|
|
|
|
|
2024-10-04 13:05:02 +02:00
|
|
|
for (uint8_t row_index=0; row_index < vertex_count; row_index++) {
|
|
|
|
for (uint8_t column_index=0; column_index < vertex_count; column_index++) {
|
2024-09-26 14:32:20 +02:00
|
|
|
if(column_index == row_index) {
|
2024-10-04 01:03:39 +02:00
|
|
|
matrix[row_index][column_index] = 0;
|
2024-09-26 14:32:20 +02:00
|
|
|
continue;
|
|
|
|
}
|
|
|
|
matrix[row_index][column_index] = rand()%2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-10-04 13:05:02 +02:00
|
|
|
|
|
|
|
int calculate_eccentricities() {
|
|
|
|
return 0;
|
|
|
|
}
|