X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6eb40f45f49f664ad67687236caf426efb86f74c..5bc071dc5bb4b8b9601c04ca530ef17bb3e4ee04:/src/xbt/graph.c diff --git a/src/xbt/graph.c b/src/xbt/graph.c index 670584b417..ad5a67f068 100644 --- a/src/xbt/graph.c +++ b/src/xbt/graph.c @@ -262,7 +262,6 @@ xbt_dynar_t xbt_graph_get_edges(xbt_graph_t g) /** @brief Retrieve the node at the source of the given edge */ xbt_node_t xbt_graph_edge_get_source(xbt_edge_t e) { - return e->src; } @@ -272,6 +271,11 @@ xbt_node_t xbt_graph_edge_get_target(xbt_edge_t e) return e->dst; } +/** @brief Retrieve the outgoing edges of the given node */ +xbt_dynar_t xbt_graph_node_get_outedges(xbt_node_t n) +{ + return n->out; +} /** @brief Set the weight of the given edge */ void xbt_graph_edge_set_length(xbt_edge_t e, double length)