-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAPIG23.h
34 lines (21 loc) · 826 Bytes
/
APIG23.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
33
34
#include <stdio.h>
#include <stdlib.h>
// el .h de abajo debe tener definida GrafoSt y unsigned int.
#include "EstructuraGrafo23.h"
// Grafo es un puntero a una estructura GrafoSt, la cual debe estar definida en el .h de arriba
#ifndef APIG23_H
#define APIG23_H
typedef GrafoSt *Grafo;
// construccion/destruccion
// debe leer desde stdin
Grafo ConstruirGrafo();
void DestruirGrafo(Grafo G);
// funciones para extraer datos del grafo. unsigned int debe estar definida en el .h de arriba
unsigned int NumeroDeVertices(Grafo G);
unsigned int NumeroDeLados(Grafo G);
unsigned int Delta(Grafo G);
// funciones de extraccion de informacion de vertices
unsigned int Nombre(unsigned int i, Grafo G);
unsigned int Grado(unsigned int i, Grafo G);
unsigned int IndiceVecino(unsigned int j, unsigned int i, Grafo G);
#endif