From 90ef21633fee7c3152d5a9e53734abdaf43a8e97 Mon Sep 17 00:00:00 2001 From: mkonicek Date: Sun, 13 Mar 2011 19:38:08 +0100 Subject: [PATCH] Object graph - bidirectional edges don't overlap anymore. --- .../Graph/Layout/SplineRouting/RouteGraph/EdgeStartEnd.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/AddIns/Debugger/Debugger.AddIn/Visualizers/Graph/Layout/SplineRouting/RouteGraph/EdgeStartEnd.cs b/src/AddIns/Debugger/Debugger.AddIn/Visualizers/Graph/Layout/SplineRouting/RouteGraph/EdgeStartEnd.cs index 018d8a87c3..619ccb0bbb 100644 --- a/src/AddIns/Debugger/Debugger.AddIn/Visualizers/Graph/Layout/SplineRouting/RouteGraph/EdgeStartEnd.cs +++ b/src/AddIns/Debugger/Debugger.AddIn/Visualizers/Graph/Layout/SplineRouting/RouteGraph/EdgeStartEnd.cs @@ -20,11 +20,12 @@ namespace Debugger.AddIn.Visualizers.Graph.SplineRouting var other = obj as EdgeStartEnd; if (other == null) return false; - return this.From == other.From && this.To == other.To; + return (this.From == other.From && this.To == other.To) || (this.From == other.To && this.To == other.From); } public override int GetHashCode() { + // commutative return this.From.GetHashCode() ^ this.To.GetHashCode(); } }