
Le 7 févr. 08 à 18:23, Roland Levillain a écrit :
Index: ChangeLog from Roland Levillain <roland@lrde.epita.fr>
Ovherhaul undirected graphs.
* mln/util/graph.hh (util::node, util::edge, util::graph): Move... * mln/util/internal/graph_base.hh: ...here (new file). (node_id, edge_id): New. (util::graph): Rename as... (util::internal::graph_base): ...this. Factor the common implementations of undirected graphs. (util::internal::consistency): Remove. (util::internal::nb_node_, util::internal::nb_link_): Remove. * mln/util/graph.hh: Include mln/util/internal/graph_base.hh. (util::graph<N, E>): New class, inheriting from util::internal::graph_base. (util::graph<N, void>, util::graph<void, void>): New specializations. * tests/util/graph.cc: Adjust.
/*---------------------------------------------------------------. | Warning, this patch breaks the interface of mln::util::graph! | `---------------------------------------------------------------*/ I have updated the clients of graphs in core/ and draw/ (patch coming right after), but I know there are some others (in particular in sandboxes) that need to be adjusted. Ask me if you have trouble updating such client code.