Aetheria/Assets/Scripts/NIH/Graph#/WeightedEdge.cs
hyperion51 d5f2e3734a TECH TREES WHOO
Implemented procedural tech tree generation by porting GraphSharp to Unity.
Also, some database editor convenience changes.
2020-04-11 19:18:02 +01:00

18 lines
No EOL
354 B
C#

using QuickGraph;
namespace GraphSharp
{
public class WeightedEdge<Vertex> : Edge<Vertex>
{
public float Weight { get; private set; }
public WeightedEdge(Vertex source, Vertex target)
: this(source, target, 1) {}
public WeightedEdge(Vertex source, Vertex target, float weight)
: base(source, target)
{
this.Weight = weight;
}
}
}