enetwork20250807002.c

/* (C) David Vajda
 * 2025-08-08
 * Circuit Parallel/Seriell excersize */

#include <stdio.h>
#include <stdlib.h>
#include <time.h>

#define N                   32
#define N_VALENCES2         N
//#define N_NOT_VALENCES2     N-N
#define N_VALENCES3         6
#define N_NOT_VALENCES3     N-N_VALENCES3
#define N_VALENCES4         12
#define N_NOT_VALENCES4     N-N_VALENCES4
#define N_VALENCES6         4
#define N_NOT_VALENCES6     N-N_VALENCES6

int main (void) {
    printf("(C) David Vajda\n");
    printf("2025-08-08\n");
    printf("Circuit Parallel/Seriell excersize\n");


    /* nicht eigener Teil */

    time_t t;
    struct tm *tm_info;

    time(&t);
    tm_info = localtime(&t);

    char date_string[25];
    strftime(date_string, sizeof(date_string), "%Y-%m-%d %H:%M:%S", tm_info);

    printf("%s\n\n", date_string);

    /* bis hierhin */
    srand (time(NULL));
    int i;
    int j;

    int vertices [N][N];
    int valences [N];
    int verticesvalences2 [N_VALENCES2];
    // int notverticesvalences2 [N];
    int verticesvalences3 [N_VALENCES3];
    int notverticesvalences3 [N_VALENCES3];
    int verticesvalences4 [N_VALENCES4];
    int notverticesvalences4 [N_VALENCES3];
    int verticesvalences6 [N_VALENCES6];
    int notverticesvalences6 [N_VALENCES3];

    for (i = 0;  i < N;  i++)
        verticesvalences2 [i] = verticesvalences3 [i] = verticesvalences4 [i] = verticesvalences4 [N] = 0;

    for (i = 0;  i < N;  i++)
        for (j = 0;  j < N;  j++)
            vertices [i][j] = 0;
    for (i = 0;  i < N;  i++) {
        valences [i] = 2;
        verticesvalences2 [i] = i;
    }

    int verticesvalences2 [N];
    int verticesvalences3 [N];
    int verticesvalences4 [N];





return 0;
}