summaryrefslogtreecommitdiffstats
path: root/src/lib/eina_graph.h
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-01-10 16:46:46 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-01-10 16:46:46 +0100
commitef6d10c4980eaf0feeb8569bc983075cc023ad83 (patch)
tree4f82e80470706ecd53aa5ef0824479e357d6f0d7 /src/lib/eina_graph.h
parentfb3483672193c2fc360d3c6e450dc051541556e5 (diff)
downloadeina_graph-ef6d10c4980eaf0feeb8569bc983075cc023ad83.zip
eina_graph-ef6d10c4980eaf0feeb8569bc983075cc023ad83.tar.gz
add eina_graph supports directed graphs
Diffstat (limited to 'src/lib/eina_graph.h')
-rw-r--r--src/lib/eina_graph.h13
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.