source: doc/proposals/modules-alvin/examples/graph/5_tweaking/graph__export.h@ 7806f91

Last change on this file since 7806f91 was 7640ff5, checked in by Alvin Zhang <alvin.zhang@…>, 2 months ago

add graph example for modules proposal

  • Property mode set to 100644
File size: 590 bytes
Line 
1#pragma once
2
3#include "graph__tshell.h"
4
5#include "graph/node__tshell.h"
6#include "graph/edge__tshell.h"
7
8struct graph$$Graph {
9 struct graph$node$$Node$$shell *nodes;
10 struct graph$edge$$Edge$$shell *edges;
11 int num_nodes;
12 int num_edges;
13};
14
15struct graph$$Graph$$shell graph$$create_rand_graph(int num_nodes, int num_edges);
16
17struct graph$node$$Node$$shell *graph$$grab_random_node(struct graph$$Graph$$shell *g);
18
19int graph$$path_found(struct graph$node$$Node$$shell *first, struct graph$node$$Node$$shell *second);
20
21int graph$$destroy_graph(struct graph$$Graph$$shell *g);
Note: See TracBrowser for help on using the repository browser.