Aetheria/Assets/Scripts/NIH/MSAGL/Miscellaneous/LayoutEditing/WeightedEdge.cs
hyperion51 01a956eef6 MSAGL Support
Added new tech tree layout implementation using Microsoft Automatic Graph Layouts
Added some functionality to the database editor tools
2020-04-14 00:42:04 +01:00

40 lines
973 B
C#

using Microsoft.Msagl.Core.GraphAlgorithms;
namespace Microsoft.Msagl.Prototype.LayoutEditing {
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1812:AvoidUninstantiatedInternalClasses")]
internal class WeightedEdge : IEdge {
int source;
/// <summary>
/// source
/// </summary>
public int Source {
get { return source; }
set { source = value; }
}
int target;
/// <summary>
/// source
/// </summary>
public int Target {
get { return target; }
set { target = value; }
}
double weight;
internal double Weight {
get { return weight; }
set { weight = value; }
}
internal WeightedEdge(int source, int target, double weight) {
Source = source;
Target = target;
Weight = weight;
}
}
}