diff options
author | Hans Bolinder <[email protected]> | 2012-03-05 15:56:59 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2012-03-05 15:56:59 +0100 |
commit | 22fd5f0ef7bc453b4532ee32972004035de23c0b (patch) | |
tree | 9ca3e0d50ad43c67ce509a3dc6850883b4430552 /lib/stdlib/src | |
parent | 30f47279844cc9d6d2b7cfb0a2014d11719d1931 (diff) | |
parent | 16e8d2cb76183d022047c74a20aca014fb38140e (diff) | |
download | otp-22fd5f0ef7bc453b4532ee32972004035de23c0b.tar.gz otp-22fd5f0ef7bc453b4532ee32972004035de23c0b.tar.bz2 otp-22fd5f0ef7bc453b4532ee32972004035de23c0b.zip |
Merge branch 'maint'
* maint:
Remove loops from the graph created by digraph_utils:condensation/1
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r-- | lib/stdlib/src/digraph_utils.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stdlib/src/digraph_utils.erl b/lib/stdlib/src/digraph_utils.erl index e221be15a1..807b5c12a1 100644 --- a/lib/stdlib/src/digraph_utils.erl +++ b/lib/stdlib/src/digraph_utils.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 1999-2011. All Rights Reserved. +%% Copyright Ericsson AB 1999-2012. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -370,5 +370,5 @@ condense('$end_of_table', _T, _SC, _G, _SCG, _I2C) -> condense(I, T, SC, G, SCG, I2C) -> [{_,C}] = ets:lookup(I2C, I), digraph:add_vertex(SCG, C), - digraph:add_edge(SCG, SC, C), + [digraph:add_edge(SCG, SC, C) || C =/= SC], condense(ets:next(T, I), T, SC, G, SCG, I2C). |