Bug in digraph:del_path/3

Crystal Din crystaldin49@REDACTED
Sat Jun 13 15:37:34 CEST 2009


Hi,

Version: Erlang/OTP R13B. Bug in digraph:del_path/3

This function does not seem to work at all.

-------------------set up digraph---------------------
1>D=digraph:new().
{digraph,40973,45070,49167,true}
2>digraph:add_vertex(D).
[‘$v’|0]
3>digraph:add_vertex(D).
[‘$v’|1]
4>digraph:add_edge(D,[‘$v’|0],[‘$v’|1]).
[‘$e’|0]
5>digraph:get_path(D,[‘$v’|0],[‘$v’|1]).
[[‘$v’|0],[‘$v’|1]]


-----------------------bug----------------------------
6>digraph:del_path(D,[‘$v’|0],[‘$v’|1]).
** exception error: bad argument
   in function ets:lookup_element/3
       called as ets:lookup_element (45070,['$e'0|],3)
   in call from digraph:collect_elems/4
   in call from digraph:get_path/3
   in call from digraph:del_path/3


/Crystal Din


More information about the erlang-bugs mailing list