rework: changed to basic implementation for dijkstra

This commit is contained in:
2026-05-06 19:58:33 -06:00
parent 0241829777
commit 94cfb10960
2 changed files with 17 additions and 6 deletions

View File

@@ -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*);
};