/// <summary>
        /// ��ʼ��EdgeNode�����ʵ��
        /// </summary>
        /// <param name="index">���յ��ڶ��������е�λ��</param>
        /// <param name="weight">���ϵ�Ȩֵ</param>
        /// <param name="next">��һ���ڽӵ�</param>
        public EdgeNode(int index, double weight, EdgeNode next)
        {
            if (index < 0)
                throw new Exception("����λ����Ч.");

            this.index = index;
            this.weight = weight;
            this.next = next;
        }
        /// <summary>
        /// ��ʼ��EdgeNode�����ʵ��
        /// </summary>
        /// <param name="index">���յ��ڶ��������е�λ��</param>
        /// <param name="Weight">���ϵ�Ȩֵ</param>
        public EdgeNode(int index, double Weight)
        {
            if (index < 0)
                throw new Exception("����λ����Ч.");

            this.index = index;
            this.weight = Weight;
            this.next = null;
        }
 /// <summary>
 /// ��ʼ��VertexNode�����ʵ��
 /// </summary>
 /// <param name="vName">���������</param>
 /// <param name="firstNode">����ĵ�һ���ڽӵ�</param>
 public VertexNode(string vName, EdgeNode firstNode)
 {
     this.vertexName = vName;
     this.visited = false;
     this.firstNode = firstNode;
 }
 //���캯��
 /// <summary>
 /// ��ʼ��VertexNode�����ʵ��
 /// </summary>
 /// <param name="vName">���������</param>
 public VertexNode(string vName)
 {
     this.vertexName = vName;
     this.visited = false;
     this.firstNode = null;
 }