-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvias.h
29 lines (26 loc) · 1.06 KB
/
vias.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
/*
* TRABALHO 5 - DC UEL MAPS
* LUCCAS DE FREITAS FERREIRA - 201200560446
* CONTINUAÇÃO DO TRABALHO ANTERIOR IMPLEMENTANDO A ESTRUTURA GRAFO
*/
#ifndef _VIAS_
#define _VIAS_
#include "graph.h"
#include "tree.h"
#include "hash.h"
typedef struct Coordenada{
float x;
float y;
}Coordenada;
int graphSize(FILE *file);
int findArc(FILE *file);
void searchQuarter(Hash* hash, char* chave, Coordenada *cord);
void findPhone(Tree *root, char *fone, Hash *hash, Coordenada *cord);
void findCepFaceNum(Tree *root, Coordenada *cord, char *cep, char *face, char *num, Hash *hash);
void findName(Tree *root, Coordenada *cord, char* nome, Hash *hash);
void findTP(Tree *root, Coordenada *cord, char *tp, Hash *hash);
int findNearestPoint(Grafo *grafo, Coordenada *cord, Vertice *vertice);
void outSVG(Tree *root, Grafo *grafo, int origem, int destino, int nVertices, int *ant);
void calcPeso(Grafo *grafo, int *ant, int aux, char *consulta, int nArestas);
void findStreet(Grafo *grafo, Tree *root, char *nomerua, char *tp, int nArestas);
#endif