Package lt.refactory.primsAlgo.graph.exception

Examples of lt.refactory.primsAlgo.graph.exception.RemoveNodeException


   * @param name name of the node to remove
   */
  public void removeNode(Node node) throws RemoveNodeException {
    for (T edge : edgeList) {
      if (edge.getStart().equals(node) || edge.getEnd().equals(node)) {
        throw new RemoveNodeException("Node has edges");
      }
    }
    nodeList.remove(node);
  }
View Full Code Here

TOP

Related Classes of lt.refactory.primsAlgo.graph.exception.RemoveNodeException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.