示例#1
0
 public void DelVertex(string name)
 {
     if (list.Contains(name) == true)
     {
         Vertex del = list.GetVertex(name);
         foreach (Vertex vertex in list.GetInputLinks(del))
         {
             list.DelLink(vertex, del);
         }
         list.Del(del);
     }
     else
     {
         throw new VertexDoesNotExistException();
     }
 }