示例#1
0
文件: ANode.cs 项目: imsunil/Decoder2
        public void DeleteEdge(char cEnd)
        {
            //AEdge edge = new AEdge((m_ID,cEnd,weight);

            for (int i = 0; i < m_Edges.Count(); i++)
            {
                AEdge edge = m_Edges[i];
                if (edge.getEnd() == cEnd)
                {
                    m_Edges.RemoveAt(i);
                    break;
                }
            }
        }
示例#2
0
文件: ANode.cs 项目: imsunil/Decoder2
        public void AddEdge(char cEnd, int weight)
        {
            AEdge edge = new AEdge(m_ID, cEnd, weight);

            m_Edges.Add(edge);
        }