rework: changed to basic implementation for dijkstra
This commit is contained in:
@@ -4,19 +4,15 @@
|
||||
#include <stdint.h>
|
||||
|
||||
struct Vertex {
|
||||
void *data;
|
||||
ArrayList *edges;
|
||||
};
|
||||
|
||||
struct Edge {
|
||||
size_t *to;
|
||||
intmax_t weight;
|
||||
size_t to;
|
||||
size_t weight;
|
||||
};
|
||||
|
||||
struct Graph {
|
||||
ArrayList *vertices;
|
||||
GraphType type;
|
||||
|
||||
int (*cmp)(const void*, const void*);
|
||||
void (*free_data)(void*);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user