#nullable disable
using System.Collections.ObjectModel;

namespace TwinFinder.Base.Graph
{
    public class EdgeList<T> : Collection<Edge<T>>
    {
        // ***********************Constructors***********************

        public EdgeList()
            : base()
        {
        }

        public EdgeList(int initialSize)
        {
            // Add the specified number of items
            for (int i = 0; i < initialSize; i++)
            {
                this.Items.Add(default(Edge<T>));
            }
        }

        // ***********************Functions***********************

        public EdgeList<T> Clone()
        {
            var newList = new EdgeList<T>();
            foreach (var edge in this.Items)
            {
                newList.Add(edge);
            }

            return newList;
        }
    }
}
#nullable enable