-
Notifications
You must be signed in to change notification settings - Fork 0
/
routeFind.h
49 lines (28 loc) · 879 Bytes
/
routeFind.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//
// Created by shx
//
#ifndef CWK2_ROUTEFIND_H
#define CWK2_ROUTEFIND_H
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include "utils.h"
void addEdge(long long u, long long v, long double w);
int readLink(link *linklist, nodeLink *nodeLinkList, char *filename);
void init(link *linklist, nodeLink *nodeLinkList);
void nodedeDuplication();
void initDcsNode();
void buildGraph(link *linklist);
void getLen(long long node1, long long node2);
void build(long long n);
void modify(long long x, long double nv);
void del(long long x);
long double dijkstra(long long s, long long t);
long double SPFA(long long s, long long t);
void printPath(long long end);
void find(char *filename);
void update(link *dcsLink, nodeLink *dcsNodeLink, long long s, long long t);
long long *getPrev();
long double getDis();
#endif //CWK2_ROUTEFIND_H