graph.h 306 B

1234567891011121314
  1. #ifndef __GRAPH__
  2. #define __GRAPH__
  3. #include <igraph.h>
  4. /* The igraph library doesn't have an innate way to test whether graphs have been initialised. */
  5. typedef struct graph_t {
  6. igraph_t* graph;
  7. igraph_bool_t initialised;
  8. } graph_t;
  9. graph_t* graph_init();
  10. void graph_destroy(graph_t *g);
  11. #endif