⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 minimumspanningtreealgorithm.java

📁 OpenJGraph是一个开源的Java库
💻 JAVA
字号:
package salvo.jesus.graph.algorithm;import salvo.jesus.graph.*;import java.util.*;import java.io.*;/** * Abstract class for an algorithm implementing the minimum spanning tree. * Classes implementing the WeightedGraph interface uses the Strategy * pattern to allow different implementations of the minimum spanning tree * algorithm to be used. * * Concrete implementations of this class must never modify WeightedGraph. * * @author  Jesus M. Salvo Jr. */public abstract class MinimumSpanningTreeAlgorithm implements Serializable {  /**   * The WeightedGraph object that the algorithm uses to determine   * the minimum spanning tree.   */  WeightedGraph   wgraph;  public MinimumSpanningTreeAlgorithm( WeightedGraph wgraph ) {    this.wgraph = wgraph;  }  /**   * Abstract method to be implemented by subclasses.   */  public abstract WeightedGraph minimumSpanningTree();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -