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

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

?? edge.java

?? 數據挖掘中很不錯的源碼,一個share算法的java源程序,有極好的可讀性
?? 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| 久久夜色精品一区| 欧美va日韩va| 一区二区三区在线免费视频 | 国产精品18久久久久久久久| 色综合久久88色综合天天6| 精品国产凹凸成av人导航| 一区二区三区四区不卡在线 | 国产视频一区二区在线观看| 一区二区三区久久| 成人短视频下载| 精品久久国产老人久久综合| 午夜精品福利一区二区三区av | 日本伊人色综合网| 欧美午夜精品一区二区三区| 日韩一区中文字幕| 不卡在线观看av| 国产日韩欧美电影| 国产麻豆91精品| 日韩一区国产二区欧美三区| 亚洲一二三四区| 色婷婷综合五月| 中文字幕中文字幕一区二区| 粉嫩aⅴ一区二区三区四区| 久久久久久免费毛片精品| 免费成人结看片| 日韩欧美在线综合网| 日产国产高清一区二区三区| 56国语精品自产拍在线观看| 亚洲影院理伦片| 在线亚洲免费视频| 亚洲最新视频在线播放| 欧美日韩午夜影院| 五月激情综合网| 欧美一区二区三区影视| 麻豆91免费观看| 精品美女在线播放| 国产在线精品一区在线观看麻豆| www久久精品| 国产在线播放一区二区三区| 久久九九久精品国产免费直播| 国内久久精品视频| 国产欧美一区视频| 91浏览器在线视频| 亚洲一二三区在线观看| 欧美亚洲一区二区在线| 日本午夜精品视频在线观看 | 精品一区二区国语对白| 26uuu欧美| 盗摄精品av一区二区三区| 亚洲天堂av一区| 欧美日韩中文国产| 精品一区二区三区免费观看| 欧美高清一级片在线观看| aaa欧美色吧激情视频| 亚洲图片自拍偷拍| 精品捆绑美女sm三区| 国产盗摄精品一区二区三区在线| 综合欧美一区二区三区| 3atv在线一区二区三区| 国产一区二区三区久久久| 国产精品电影一区二区三区| 欧美日韩国产系列| 国产成人欧美日韩在线电影| 成人欧美一区二区三区白人| 欧美日韩高清在线| 大白屁股一区二区视频| 亚洲成人手机在线| 精品国产精品网麻豆系列| 成人黄色小视频在线观看| 婷婷久久综合九色综合伊人色| 久久精品一区二区三区不卡牛牛| 色综合天天综合网国产成人综合天| 视频一区在线播放| 国产精品成人网| 欧美大片一区二区| 日本伦理一区二区| 国产精品亚洲一区二区三区在线 | 亚洲线精品一区二区三区| 精品久久国产字幕高潮| 欧美专区日韩专区| 成人午夜视频福利| 老鸭窝一区二区久久精品| 一区在线播放视频| 亚洲精品一区二区三区蜜桃下载 | 97久久人人超碰| 国产制服丝袜一区| 亚洲五码中文字幕| 成人欧美一区二区三区| 国产亚洲午夜高清国产拍精品 | 亚洲高清免费视频| 最新国产精品久久精品| 久久精品视频在线看| 欧美一区二区三区小说| 欧美在线一区二区| 色香蕉久久蜜桃| 成人蜜臀av电影| 国产91精品免费| 久久国产精品色| 婷婷综合在线观看| 香蕉加勒比综合久久| 亚洲品质自拍视频| 国产精品久久毛片a| 国产日产欧产精品推荐色| 精品对白一区国产伦| 欧美肥胖老妇做爰| 欧美美女bb生活片| 欧美视频一区二区三区四区| 色综合欧美在线视频区| 99久久久国产精品免费蜜臀| 成人动漫中文字幕| 99久久精品情趣| 91视频在线看| 99久久精品免费| 成人精品高清在线| 99国产一区二区三精品乱码| 成人黄页在线观看| 99在线精品观看| 91福利国产成人精品照片| 欧美在线free| 欧美日韩精品是欧美日韩精品| 欧美日韩在线三级| 欧美电影一区二区| 欧美mv和日韩mv的网站| 亚洲精品一区在线观看| 国产欧美日韩在线观看| 中文字幕亚洲一区二区av在线| 国产精品成人免费在线| 亚洲伦理在线免费看| 一区二区三区不卡在线观看| 亚洲午夜日本在线观看| 丝袜美腿成人在线| 久久超碰97中文字幕| 国产成人精品综合在线观看| 成人免费毛片app| 色嗨嗨av一区二区三区| 欧美精品一卡二卡| 国产无人区一区二区三区| 综合久久久久久久| 日本亚洲天堂网| 成人午夜免费av| 欧美色欧美亚洲另类二区| 日韩美女在线视频| 国产精品欧美久久久久一区二区| 亚洲精品日韩一| 久久精品99国产精品日本| 成人av网站大全| 在线电影欧美成精品| 久久久精品国产99久久精品芒果| 亚洲欧美国产77777| 蜜臀av一区二区在线观看| 成人黄色在线看| 91麻豆精品国产91久久久使用方法 | 99久久777色| 欧美一区二区日韩一区二区| 久久久国产综合精品女国产盗摄| 亚洲精品视频在线看| 免费观看日韩电影| 色偷偷88欧美精品久久久| 欧美一级片在线观看| 国产精品久久久久久久久快鸭 | 欧美日韩一本到| 日本一区二区免费在线观看视频 | 中文字幕乱码亚洲精品一区 | 国产一区二区三区日韩| 91久久奴性调教| 久久夜色精品国产欧美乱极品| 亚洲日本护士毛茸茸| 国产一二三精品| 日韩亚洲欧美高清| 一区二区三区产品免费精品久久75| 国产精品一线二线三线精华| 欧美揉bbbbb揉bbbbb| 亚洲欧美在线高清| 国产伦精品一区二区三区在线观看| 欧美色视频在线| 夜色激情一区二区| av资源网一区| 亚洲国产精品成人久久综合一区| 免费精品视频最新在线| 欧美日韩国产系列| 亚洲小少妇裸体bbw| av一区二区不卡| 国产欧美一区二区精品忘忧草 | 欧美刺激脚交jootjob| 亚洲国产精品久久不卡毛片 | 成人av在线影院| 久久一区二区三区四区| 青青青爽久久午夜综合久久午夜| 欧美三级乱人伦电影| 亚洲欧美日韩在线不卡| 99久久精品国产导航| 国产精品国产三级国产aⅴ入口 | 91豆麻精品91久久久久久| 亚洲人亚洲人成电影网站色| 国产成人精品影院| 国产人久久人人人人爽| 成人做爰69片免费看网站| 中文欧美字幕免费| 成人激情图片网|