亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? edge.java

?? 決策樹分類中經典算法的ID3和C4.5代碼公共包!
?? JAVA
字號:
package shared;
import java.lang.*;
import java.io.*;

/** The Edge class stores information for the edges in the Graph class. This
 * is part of the LEDA package Graph design. The comments in Graph also apply
 * to the edge class.
 * @author James Louis	5/24/2001	Java Implementation.
 */
public class Edge extends GraphObject{
//based on LEDA

    /** Succesive adjacent Edges. These are edges that are added after this edge
     * but are originating from the same origin node.
     */
   public Edge[] succ_adj_edge;

   /** Preceeding adjacent Edges. These are edges that are present before this edge
    * is created and have the same origin node.
    */
   public Edge[] pred_adj_edge;

   /** Terminal Nodes for this Edge. For directed Edges, term[0] is the source
    * Node and term[1] is the target Node.
    */
   public Node[] term;

   /** The Edge that is reverse in direction to this Edge object.
    */
   public Edge rev;			//edge that travels in reverse direction

   /** TRUE if this Edge object is hidden, otherwise FALSE.
    */
   public boolean hidden;

   /** Constructor.
    * @param terminal1 The origin terminal node.
    * @param terminal2 The destination terminal node.
    * @param info The Object containing data to be stored in thid Edge instance.
    */
   public Edge(Node terminal1, Node terminal2, Object info)
   {
      succ_adj_edge = new Edge[2];
      succ_adj_edge[0] = null;
      succ_adj_edge[1] = null;
      pred_adj_edge = new Edge[2];
      pred_adj_edge[0] = null;
      pred_adj_edge[1] = null;
      id = 0;
      term = new Node[2];
      term[0] = terminal1;
      term[1] = terminal2;
      rev = null;
      data = info;
      hidden = false;
   }

   /** Returns the source Node for this Edge.
    * @return The source Node for this Edge.
    */
   public Node source()
   {
      return term[0];
   }

   /** Returns the target Node for this Edge.
    * @return The destination Node for this Edge.
    */
   public Node target()
   {
      return term[1];
   }

   /** Returns the Node at the opposite end of the specified Edge connected to
    * that Node.
    * @param vertex The Node instance at the given end of the Edge.
    * @param edge The Edge instance for which the opposite edn is requested.
    * @return The Node at the opposite end of the specified Edge instance.
    */
   public Node opposite(Node vertex,Edge edge)
   {
      return (vertex == edge.source()) ? edge.target() : edge.source();
   }

   /** Returns the Graph object which this Edge is a part of.
    * @return The Graph instance this Edge is a part of.
    */
   public Graph graph_of()
   {
      return term[0].graph_of();
   }

   /** Copies the specified Edge object into this Edge object.
    * @param original The Edge instance to be copied.
    */
   public void copy(Edge original)
   {
      if (succ_adj_edge == null) succ_adj_edge = new Edge[2];
      if (pred_adj_edge == null) pred_adj_edge = new Edge[2];
      if (term == null) term = new Node[2];
      for(int j = 0; j < 2; j++)
      {
         succ_adj_edge[j] = original.succ_adj_edge[j];
         pred_adj_edge[j] = original.pred_adj_edge[j];
         term[j] = original.term[j];
      }
      id = original.id;
      data = original.data;
      rev = null;
      hidden = original.hidden;
   }

   /** Returns the specified successive adjacent Edge.
    * @param index The number of the specified Edge. Must be 0 or 1.
    * @return The specified successive adjacent Edge.
    */
   public Edge Succ_Adj_Edge(int index) {
       return (this != null) ? succ_adj_edge[index] : null;
   }

   /** Returns the specified preceeding adjacent Edge.
    * @param index The number of the specified Edge. Must be 0 or 1.
    * @return The specified preceeding adjacent Edge.
    */
   public Edge Pred_Adj_Edge(int index) {
       return (this != null) ? pred_adj_edge[index] : null;
   }

   /** Returns the successive adjacent Edge connected to the specified Node.
    * Searches through all succesive Edges until the appropriate one is found.
    * Assumes the connecting Edge exists.
    * @param vertex The specified Node for which a connecting Edge is requested.
    * @return The Edge connecting to the specified Node.
    */
   public Edge Succ_Adj_Edge(Node vertex)
   {
      return (this != null) ? Succ_Adj_Edge((vertex==source()) ? 0:1) : null;
   }

   /** Returns the preceeding adjacent Edge connected to the specified Node.
    * Searches through all preceeding Edges until the appropriate one is found.
    * Assumes the connecting Edge exists.
    * @param vertex The specified Node for which a connecting Edge is requested.
    * @return The Edge connecting to the specified Node.
    */
   public Edge Pred_Adj_Edge(Node vertex)
   {
      return (this != null) ? Pred_Adj_Edge((vertex==source()) ? 0:1) : null;
   }

   /** Returns the first successive adjacent Edge.
    * @return The immediately succesive Edge.
    */
   public Edge adj_succ()
   {
      return succ_adj_edge[0];
   }

   /** Returns the first preceeding adjacent Edge.
    * @return The immediately preceeding Edge.
    */
   public Edge adj_pred()
   {
      return pred_adj_edge[0];
   }

   /** Returns the first successive Edge instance from the source Node for this Edge
    * instance.
    * @return The Edge instance from the source Node for this Edge instance.
    */
   public Edge cyclic_adj_succ()
   {
      if (succ_adj_edge[0] != null){return (Edge)term[0].first_adj_edge();}
      else {return null;}
   }

   /** Returns the first preceeding Edge instance from the source Node for this Edge
    * instance.
    * @return The Edge instance from the source Node for this Edge instance.
    */
   public Edge cyclic_adj_pred()
   {
      if (pred_adj_edge[0] != null){return (Edge)term[0].last_adj_edge();}
      else {return null;}
   }

   /** Returns the first Edge object connected to the source Node.
    * @return The Edge object immediately connecting the source Node to the Edges connecting
    * to the next Node.
    */
   public Edge cyclic_in_succ()
   {
      if (succ_adj_edge[1] != null){return (Edge)term[1].first_in_edge();}
      else {return null;}
   }

   /** Returns the last Edge object before reaching a destination Node.
    * @return The last Edge object before the edge terminates at a Node.
    */
   public Edge cyclic_in_pred()
   {
      if (pred_adj_edge[1] != null){return (Edge)term[1].last_in_edge();}
      else {return null;}
   }

   /** Returns the succeding adjacent Edge of the specified Edge object.
    * @param e The Edge for which the adjacent Edge is requested.
    * @return The adjacent Edge of the specified Edge.
    */
   public Edge in_succ(Edge e)
   {
      return succ_adj_edge[1];
   }

   /** Returns the adjacent preceeding Edge of the specified Edge object.
    * @param e The Edge for which the adjacent Edge is requested.
    * @return The adjacent Edge of the specified Edge.
    */
   public Edge in_pred(Edge e)
   {
      return pred_adj_edge[1];
   }

   /** Displays the object currently stored in this Edge object.
    * @param out The Writer to which the Edge information will be displayed.
    * @throws IOException if the Writer experiences an IOException during use.
    */
   public void print_edge_entry(Writer out) throws IOException
   {
      out.write("(" + data.toString() +")");
   }

   /** Displays this Edge object to the given Writer.
    * @param out The Writer to which the Edge information will be displayed.
    * @throws IOException if the Writer experiences an IOException during use.
    */
   public void print_edge(Writer out) throws IOException
   {
// if (super() != 0)
//     super()->print_edge(edge(graph::inf(e)),o);
//  else
//     {
      out.write("[" + source() + "]");
      out.write(((source().owner.is_undirected()) ? "==" : "--"));
      print_edge_entry(out);
      out.write(((source().owner.is_undirected()) ? "==" : "-->"));
      out.write("[" + target() + "]");
//      }
   }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美在线免费视屏| 国产一区在线看| 国产精品久久久久永久免费观看 | 韩国av一区二区三区在线观看| 亚洲精品国产第一综合99久久 | 日韩欧美一级精品久久| 在线这里只有精品| 欧美在线免费视屏| 欧美精品丝袜中出| 日韩一二三区不卡| 亚洲精品一区二区三区香蕉| 国产亚洲综合在线| 中文字幕中文字幕在线一区| 自拍偷拍亚洲激情| 亚洲一区电影777| 免费不卡在线观看| 久久精品国产亚洲高清剧情介绍| 激情综合网激情| 成人午夜av电影| 色天使久久综合网天天| 欧美亚洲国产bt| 欧美一级一区二区| 一区二区理论电影在线观看| 亚洲欧美日韩中文播放| 亚洲444eee在线观看| 卡一卡二国产精品| 国产精品一区在线观看乱码 | 激情文学综合网| 国产成a人亚洲精| 欧美在线免费播放| 精品伦理精品一区| 玉米视频成人免费看| 麻豆精品在线视频| 99久久国产综合精品女不卡| 正在播放亚洲一区| 欧美激情艳妇裸体舞| 亚洲国产精品一区二区www在线| 日产精品久久久久久久性色| 国产成人激情av| 欧美人体做爰大胆视频| 国产女人aaa级久久久级| 日韩影院在线观看| 成人avav在线| 久久综合99re88久久爱| 亚洲一区二区三区四区在线免费观看 | 欧美岛国在线观看| 亚洲精品国产成人久久av盗摄| 国产美女视频一区| 在线成人小视频| 亚洲免费视频成人| 国产成人午夜精品5599| 欧美一区二区大片| 亚洲精品一二三四区| 成人污视频在线观看| 337p日本欧洲亚洲大胆精品| 亚洲一二三级电影| 色婷婷久久久久swag精品| 国产婷婷色一区二区三区四区| 日韩av高清在线观看| 99久久伊人网影院| 欧美韩国日本综合| 国产综合一区二区| 精品入口麻豆88视频| 亚洲精品ww久久久久久p站 | 亚洲黄色小视频| 国产精品久久99| 中文字幕一区日韩精品欧美| 69堂精品视频| 成人精品视频一区二区三区| 亚洲主播在线播放| 国产成人午夜片在线观看高清观看| 欧美一激情一区二区三区| 亚洲福利电影网| 欧美这里有精品| 一区二区三区日韩精品| 91美女在线观看| 亚洲免费电影在线| 色婷婷久久综合| 亚洲a一区二区| 9191精品国产综合久久久久久 | 99免费精品在线| 亚洲欧美视频在线观看视频| 99re视频这里只有精品| 亚洲人成在线观看一区二区| 一本一本久久a久久精品综合麻豆| 亚洲精品第一国产综合野| 色综合中文综合网| 91麻豆国产福利在线观看| 自拍偷拍欧美精品| 欧美日韩日日摸| 日本亚洲欧美天堂免费| 日韩一区二区在线观看视频| 韩国三级电影一区二区| 中文字幕欧美日本乱码一线二线| 91亚洲国产成人精品一区二三 | 在线电影一区二区三区| 理论片日本一区| 国产欧美日韩另类一区| 91一区二区三区在线播放| 亚洲123区在线观看| 欧美精品久久久久久久久老牛影院| 久久国产精品99久久久久久老狼| 国产日韩欧美精品综合| 一本色道久久综合亚洲91| 亚洲成av人片观看| 久久精品夜夜夜夜久久| 91视频com| 久久se这里有精品| 日韩一区欧美小说| 日韩精品一区二区三区视频播放| 成人国产一区二区三区精品| 香蕉成人啪国产精品视频综合网| 久久久久久久久久久99999| av激情综合网| 精品制服美女久久| 亚洲与欧洲av电影| 久久久久久免费网| 欧美日韩国产中文| 成人综合在线观看| 日产国产欧美视频一区精品| 中文字幕在线观看一区| 精品少妇一区二区三区视频免付费| 99久久99久久免费精品蜜臀| 秋霞成人午夜伦在线观看| 国产精品网站在线| 日韩午夜av电影| 在线免费观看成人短视频| 国产福利精品一区| 麻豆精品一区二区| 亚洲国产精品一区二区www| 国产精品毛片无遮挡高清| 精品国产一区二区三区不卡| 欧洲国内综合视频| 99热99精品| av不卡在线观看| 国产999精品久久久久久绿帽| 久久99精品久久久久久久久久久久| 亚洲成人一区二区| 亚洲另类中文字| 日韩一区日韩二区| 中文字幕一区三区| 国产精品不卡一区二区三区| 中文av字幕一区| 国产精品女同一区二区三区| 久久综合av免费| 久久久久国产成人精品亚洲午夜| 日韩一区二区三区免费看 | 国产精品久久久久9999吃药| 欧美大片在线观看一区| 日韩欧美亚洲国产另类| 欧美精品乱人伦久久久久久| 欧美精品在线一区二区三区| 欧美美女bb生活片| 欧美区视频在线观看| 欧美日韩日日夜夜| 91麻豆精品国产91久久久使用方法| 欧美三级日本三级少妇99| 在线播放中文字幕一区| 欧美一区二区高清| 精品成人免费观看| 2023国产精品自拍| 日本一区二区视频在线| 中文字幕日韩一区二区| 亚洲精品日韩综合观看成人91| 夜夜精品浪潮av一区二区三区| 一区二区三区在线视频播放| 五月天激情综合| 经典一区二区三区| 高清视频一区二区| 色婷婷综合久久久久中文 | 久久久久久99精品| 国产日产欧产精品推荐色| 亚洲三级视频在线观看| 夜色激情一区二区| 看片的网站亚洲| 99精品久久只有精品| 欧美体内she精高潮| 日韩欧美三级在线| 国产精品短视频| 午夜久久福利影院| 国产一区视频网站| 91国在线观看| 久久久久久一二三区| 一级女性全黄久久生活片免费| 久久国产尿小便嘘嘘| 一本在线高清不卡dvd| 精品奇米国产一区二区三区| 国产精品灌醉下药二区| 男男gaygay亚洲| 色噜噜狠狠成人中文综合| 欧美一级免费大片| 亚洲欧洲av在线| 国产一二三精品| 欧美日韩精品三区| 中文字幕亚洲不卡| 国内精品久久久久影院一蜜桃| 91偷拍与自偷拍精品| 久久午夜电影网| 天堂影院一区二区| 色综合天天天天做夜夜夜夜做|