A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Adding convenient access functions.
[simgrid.git]
/
src
/
xbt
/
graph.c
diff --git
a/src/xbt/graph.c
b/src/xbt/graph.c
index
1b7ba14
..
cbe13d7
100644
(file)
--- a/
src/xbt/graph.c
+++ b/
src/xbt/graph.c
@@
-84,6
+84,15
@@
xbt_edge_t xbt_graph_new_edge(xbt_graph_t g,
return edge;
}
+void *xbt_graph_node_get_data(xbt_node_t node)
+{
+ return node->data;
+}
+
+void *xbt_graph_edge_get_data(xbt_edge_t edge)
+{
+ return edge->data;
+}
/** @brief Destructor
* @param l: poor victim