Пример #1
0
        public T GetMove(List <int> list, TRANSFER_CHARACTER transfer_character)
        {
            T t = new T();

            if (list == null)
            {
                return(null);
            }
            List <int> result = new List <int>();

            for (int i = 0; i < list.Count; i++)
            {
                int item = list[i];
                for (int j = 0; j < this.fa.headVerList[item].arcList.Count; j++)
                {
                    if (this.fa.headVerList[item].arcList[j].transfer_char.Equals(transfer_character))
                    {
                        int temp = this.fa.headVerList.IndexOf(this.fa.headVerList[item].arcList[j].eVertex);
                        if (!result.Contains(temp))
                        {
                            result.Add(temp);
                        }
                    }
                }
            }
            t.SetIntList(list);
            return(t);
        }
Пример #2
0
 public Arc(Vertex eVertex, TRANSFER_CHARACTER transfer_char)
 {
     this.eVertex       = eVertex;
     this.transfer_char = transfer_char;
 }