diff options
Diffstat (limited to 'src/lib/eina_graph.h')
-rw-r--r-- | src/lib/eina_graph.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/lib/eina_graph.h b/src/lib/eina_graph.h index 3297a22..c47c66a 100644 --- a/src/lib/eina_graph.h +++ b/src/lib/eina_graph.h @@ -46,11 +46,12 @@ typedef struct _Eina_Graph_Opaque Eina_Graph; * * @param v the number of vertices. * @param step grow step for the adjacent lists. + * @param directed graph or not. * * @return a pointer to the Eina_Graph. */ EAPI Eina_Graph * -eina_graph_new(unsigned int v, unsigned int step); +eina_graph_new(unsigned int v, unsigned int step, Eina_Bool directed); /** * free the given graph. @@ -61,6 +62,16 @@ EAPI void eina_graph_free(Eina_Graph *g); /** + * returns true if it is a directed graph. + * + * @param g the graph to consider. + * + * @retur true if this is a directed graph. + */ +EAPI Eina_Bool +eina_graph_directed(const Eina_Graph *g); + +/** * returns the number of vertices of the graph. * * @param g the graph to consider. |