public void AddEdge(BatteryStation station, double distance, bool twoWay)
        {
            Edge newEdge = new Edge(this, station, distance);
            edges.Add(newEdge);

            if (twoWay)
                station.AddEdge(this, distance, false);
        }
 public void AddEdge(BatteryStation from, BatteryStation to, double distance, bool twoWay)
 {
     if (FindEdge(from, to) == null)
         from.AddEdge(to, distance, twoWay);
 }