23 lines
406 B
C
23 lines
406 B
C
#ifndef TRIANGLE_H
|
|
#define TRIANGLE_H
|
|
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <memory.h>
|
|
|
|
#include "queue.h"
|
|
|
|
typedef struct _groupelement {
|
|
int id;
|
|
int length;
|
|
struct _groupelement *adj[3];
|
|
struct _groupelement *parent;
|
|
struct _groupelement *inverse;
|
|
int letter;
|
|
int visited;
|
|
} groupelement_t;
|
|
|
|
int generate_triangle_group(groupelement_t *group, int size, int k1, int k2, int k3);
|
|
|
|
#endif
|