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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? edge.java

?? c4.5 ID3 分類決策數(shù) 公用java包 share
?? JAVA
字號(hào):
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() + "]");
//      }
   }

}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩综合在线免费观看| 欧美精三区欧美精三区| 亚洲国产日韩在线一区模特| 欧美一区二区三区视频免费播放 | 亚洲一区二区三区四区在线| www国产成人| 制服丝袜亚洲精品中文字幕| www.日韩精品| 狠狠色丁香久久婷婷综合_中| 亚洲精品中文字幕乱码三区| 国产亚洲短视频| 在线综合亚洲欧美在线视频| 99久精品国产| 国产福利一区二区三区| 天堂久久久久va久久久久| 樱花草国产18久久久久| 国产亚洲精品福利| 精品一区中文字幕| 亚洲午夜精品17c| 久久久欧美精品sm网站| 欧美精品v日韩精品v韩国精品v| 国产成人福利片| 久久99精品国产.久久久久 | 亚洲欧美国产毛片在线| 久久久久久久久久电影| 精品女同一区二区| 欧美一区日本一区韩国一区| 欧美午夜一区二区三区免费大片| 99精品1区2区| 91香蕉视频污在线| 91最新地址在线播放| 成人福利在线看| 丁香啪啪综合成人亚洲小说| 国产成人午夜精品5599 | 国产一区二区三区四区在线观看| 日本亚洲电影天堂| 天堂av在线一区| 亚洲 欧美综合在线网络| 亚洲资源在线观看| 亚洲国产日韩a在线播放性色| 洋洋成人永久网站入口| 亚洲国产wwwccc36天堂| 亚洲成人动漫在线观看| 午夜电影一区二区三区| 天堂成人免费av电影一区| 日本美女视频一区二区| 奇米影视一区二区三区| 老司机免费视频一区二区三区| 久久福利资源站| 国产一区在线观看视频| 国产成人免费9x9x人网站视频| 粉嫩绯色av一区二区在线观看| 国产91在线看| 色综合婷婷久久| 精品国产三级a在线观看| 日韩欧美中文一区二区| 久久久久久影视| 国产精品国产a级| 一区二区三区免费网站| 天堂蜜桃一区二区三区| 久久99久久精品| 成人18视频日本| 91成人免费在线| 91精品国产色综合久久ai换脸 | 精品成人a区在线观看| 国产亚洲污的网站| 亚洲欧美在线视频| 亚洲成人免费电影| 久久av中文字幕片| bt欧美亚洲午夜电影天堂| 在线日韩国产精品| 日韩精品一区二区三区视频在线观看 | 免费高清在线视频一区·| 国产成人自拍在线| 91精品福利视频| 精品国产一区二区三区忘忧草| 国产精品卡一卡二卡三| 亚洲国产精品久久久久秋霞影院 | 欧美日韩国产不卡| 精品蜜桃在线看| 自拍偷拍亚洲综合| 日韩av不卡在线观看| 成人网页在线观看| 欧美一区二区黄| 国产精品视频一区二区三区不卡| 亚洲超碰精品一区二区| 国产一区二区三区| 欧美日韩精品一区二区| 国产精品三级视频| 婷婷丁香激情综合| eeuss鲁片一区二区三区在线看| 欧美剧情电影在线观看完整版免费励志电影| 亚洲精品在线一区二区| 一区二区三区在线高清| 国产激情精品久久久第一区二区| 欧美日韩在线直播| 国产精品欧美综合在线| 日韩av电影免费观看高清完整版在线观看| 成人晚上爱看视频| 精品国产网站在线观看| 亚洲超碰97人人做人人爱| 99久久久久久99| xf在线a精品一区二区视频网站| 亚洲观看高清完整版在线观看 | 久久精品国产在热久久| 色8久久精品久久久久久蜜| 国产亚洲欧洲997久久综合| 日本成人在线不卡视频| 欧美艳星brazzers| 亚洲免费观看高清完整版在线观看熊 | 亚洲一区二区在线观看视频| 国产精品正在播放| 日韩欧美在线综合网| 午夜精品123| 欧美日韩一卡二卡三卡| 亚洲男帅同性gay1069| 处破女av一区二区| 久久久久国产免费免费| 美日韩一区二区| 51精品久久久久久久蜜臀| 亚洲国产日韩精品| 日本电影亚洲天堂一区| 一色桃子久久精品亚洲| 粉嫩一区二区三区性色av| 久久久91精品国产一区二区三区| 蜜臀av性久久久久蜜臀av麻豆| 欧美三级日韩三级国产三级| 亚洲女人的天堂| thepron国产精品| 国产精品久久久久毛片软件| 国产精品18久久久| 久久精品夜夜夜夜久久| 国产精品影视在线观看| 精品国产一区二区国模嫣然| 久久国产精品99久久久久久老狼| 日韩欧美国产wwwww| 开心九九激情九九欧美日韩精美视频电影| 欧美精品日韩综合在线| 天堂一区二区在线| 日韩手机在线导航| 久久国产日韩欧美精品| 2014亚洲片线观看视频免费| 激情六月婷婷综合| 久久色中文字幕| 国产成人av在线影院| 中文字幕二三区不卡| 91视频在线观看| 亚洲一区在线观看网站| 欧美久久久久免费| 久久成人麻豆午夜电影| 久久你懂得1024| 99re66热这里只有精品3直播 | 亚洲综合区在线| 欧美日韩国产经典色站一区二区三区| 亚洲综合视频网| 91精品国产91久久综合桃花| 麻豆精品蜜桃视频网站| 久久网站热最新地址| 99精品久久只有精品| 亚洲午夜久久久久久久久久久| 欧美日韩在线免费视频| 麻豆精品视频在线观看| 国产精品久久久一本精品| 色系网站成人免费| 全国精品久久少妇| 中文字幕第一区第二区| 欧美性生活影院| 激情小说欧美图片| 亚洲欧洲性图库| 欧美高清视频www夜色资源网| 久久丁香综合五月国产三级网站| 国产精品污网站| 欧美精品精品一区| 国产河南妇女毛片精品久久久| 亚洲免费观看在线视频| 精品国产一区二区三区av性色| 99久久精品免费看| 日本不卡视频在线| 中文字幕制服丝袜一区二区三区 | 日韩精品影音先锋| 91色九色蝌蚪| 久久黄色级2电影| 伊人色综合久久天天人手人婷| 精品久久免费看| 色激情天天射综合网| 狠狠狠色丁香婷婷综合激情 | 成人黄页毛片网站| 日韩在线一区二区| 国产精品久久久久婷婷| 日韩免费看的电影| 在线观看日韩电影| 国产999精品久久久久久| 奇米影视在线99精品| 亚洲黄一区二区三区| 久久久国际精品| 7777精品伊人久久久大香线蕉的| 成人国产一区二区三区精品| 麻豆久久一区二区| 亚洲香肠在线观看| 国产精品国产成人国产三级 |