-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelacion.h
32 lines (26 loc) · 997 Bytes
/
relacion.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef RELACION_H
#define RELACION_H
typedef struct _Relacion
{
char * nombre;
int ** relacion; /*relacion de partida*/
int ** cierre_relacion; /*el cierre de la transicion*/
int num_elementos;
}Relacion;
Relacion * relacionNueva(char * nombre, int num_elementos);
int ** matrizInit(int n);
void matrizElimina(int** matriz, int n);
void relacionElimina(Relacion * p_r);
Relacion * relacionInserta(Relacion * p_r, int i, int j);
void relacionImprime(FILE * fd, Relacion * p_r);
int ** matrizCopia(int** matriz, int n);
int ** matrizMultiplica(int** m1, int** m2, int n);
int ** matrizSuma(int** m1, int** m2, int n);
void matrizImprime(FILE * fd, int** m, int n);
int matrizCompara(int** m1, int** m2, int n);
int matrizVacia(int** m1, int n);
Relacion * relacionCierreTransitivo(Relacion * p_r);
void matrizArreglarUnos(int** matriz, int n);
void relacionImprime_teorico(FILE * fd, Relacion * p_r);
void matrizImprime_teorico(FILE * fd, int** m, int n);
#endif //RELACION_H