C Everything
This is a C repository containing a curated set of generic data structures and algorithm.
|
Contains declations of graph types, operations and structure. More...
Go to the source code of this file.
Data Structures | |
struct | gnode |
graph Vertex More... | |
struct | gedge |
graph neighbor edges represented in neigh list More... | |
struct | graph |
graph struct defn More... | |
struct | bfs_info |
Level and Parent info after BFS walk. More... | |
struct | dfs_info |
Level and Parent info after DFS walk. More... | |
struct | dag_info |
Longest Path and Node order after DAG ordering. More... | |
struct | dist_info |
Dist info. More... | |
Typedefs | |
typedef struct gnode | t_gnode |
graph Vertex More... | |
typedef struct gedge | t_gedge |
graph neighbor edges represented in neigh list More... | |
typedef t_gen(* | f_wedge) (t_gen, t_gen, t_gen, int) |
typedef struct graph | t_graph |
graph struct defn More... | |
typedef struct bfs_info | t_bfsinfo |
Level and Parent info after BFS walk. More... | |
typedef struct dfs_info | t_dfsinfo |
Level and Parent info after DFS walk. More... | |
typedef struct dag_info | t_daginfo |
Longest Path and Node order after DAG ordering. More... | |
typedef struct dist_info | t_distinfo |
Dist info. More... | |
Functions | |
t_gen | create_graph (char *name, int size, t_dparams *prm) |
graph interface APIs More... | |
t_gen | dijkstra (t_gen d, t_gen data) |
Utils function used by quick sort for swapping graph edges More... | |
t_gen | bellman_ford (t_gen d, t_gen data) |
Find the shortest path from a given source vertex to all source nodes in a graph with negative edges this is an improvent of bellman ford using Shortest Path Faster Algorithm (SPFA) More... | |
t_gen | prims_mst (t_gen d) |
Find the Minimum Spanning for weighted undirected graph Using Prim's Algorithm More... | |
t_gen | kruskals_mst (t_gen d) |
Find the Minimum Spanning for weighted undirected graph Using Kruskal's Algorithm More... | |
Contains declations of graph types, operations and structure.
Definition in file graph.h.
typedef struct dist_info t_distinfo |
Dist info.
Find the shortest path from a given source vertex to all source nodes in a graph with negative edges this is an improvent of bellman ford using Shortest Path Faster Algorithm (SPFA)
d | - Pointer instance of graph |
data | - Pointer to source vertex data |
Utils function used by quick sort for swapping graph edges
d | - Pointer to array |
i | - index 1 |
j | - index 2 |
Find the shortest path from a given source vertex to all source nodes in a graph using Dijkstra's algo
d | - Pointer instance of graph |
data | - Pointer to source vertex data |
Find the Minimum Spanning for weighted undirected graph Using Kruskal's Algorithm
d | - Pointer instance of graph |
Find the Minimum Spanning for weighted undirected graph Using Prim's Algorithm
d | - Pointer instance of graph |