mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 22:20:17 +02:00
TLvlGraph: Adjust node in/out-weights, if edge is destroyed.
git-svn-id: trunk@60878 -
This commit is contained in:
parent
7a5bb3650c
commit
5b8832a7b0
@ -3566,6 +3566,8 @@ begin
|
||||
OldGraph:=Source.Graph;
|
||||
Source.FOutEdges.Remove(Self);
|
||||
Target.FInEdges.Remove(Self);
|
||||
Source.FOutWeight-=FWeight;
|
||||
Target.FInWeight-=FWeight;
|
||||
FSource:=nil;
|
||||
FTarget:=nil;
|
||||
if OldGraph<>nil then
|
||||
|
Loading…
Reference in New Issue
Block a user