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

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

?? edge.java

?? 用C編寫的數(shù)據(jù)挖掘的相關(guān)算法
?? 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() + "]");
//      }
   }

}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品一二三四五| 麻豆精品久久精品色综合| 成人手机电影网| 久久精品综合网| 不卡在线视频中文字幕| 一区二区在线看| 欧美日韩中文精品| 男女性色大片免费观看一区二区| 日韩精品一区二区三区蜜臀| 国产传媒日韩欧美成人| 国产精品麻豆视频| 欧美在线看片a免费观看| 日日摸夜夜添夜夜添精品视频| 欧美va亚洲va| 成a人片亚洲日本久久| 亚洲午夜免费电影| 精品国产一区二区精华| 99久久久久久99| 日日夜夜精品免费视频| 国产欧美视频在线观看| 欧美视频在线观看一区| 国产一区二区三区黄视频| 成人免费在线视频| 91精品国产福利| 豆国产96在线|亚洲| 亚洲成av人片在线观看无码| 日韩精品一区二区三区视频在线观看 | 婷婷中文字幕一区三区| 欧美精品一区二区三区久久久| 91免费在线看| 麻豆精品一区二区三区| 樱桃视频在线观看一区| 欧美成人猛片aaaaaaa| 色综合网色综合| 国产一区二区0| 亚洲va国产天堂va久久en| 26uuu国产日韩综合| 欧美日韩一本到| 成人综合日日夜夜| 日本不卡视频在线| 一级特黄大欧美久久久| 久久久久久免费网| 欧美男生操女生| 91麻豆国产香蕉久久精品| 国内精品久久久久影院色 | 亚洲小说欧美激情另类| 日本一区二区三区国色天香| 欧美一区二区视频网站| 91成人免费在线| 不卡的电影网站| 国产一区二区不卡| 久久疯狂做爰流白浆xx| 午夜不卡在线视频| 亚洲激情图片qvod| 国产精品青草综合久久久久99| 精品国产露脸精彩对白| 欧美高清视频一二三区| 欧洲亚洲国产日韩| 91网址在线看| 91色|porny| av一区二区三区四区| 国产精品一区免费视频| 九一九一国产精品| 日本91福利区| 秋霞国产午夜精品免费视频| 亚洲高清不卡在线观看| 亚洲午夜一区二区| 亚洲夂夂婷婷色拍ww47| 亚洲精品乱码久久久久久久久| 亚洲丝袜另类动漫二区| 国产精品动漫网站| 中文字幕一区视频| 亚洲人成小说网站色在线| 亚洲欧洲精品一区二区精品久久久 | 久久99久久99| 蜜臀精品一区二区三区在线观看| 三级影片在线观看欧美日韩一区二区 | 欧美视频三区在线播放| 91片黄在线观看| 91成人看片片| 欧美视频自拍偷拍| 5月丁香婷婷综合| 欧美一三区三区四区免费在线看| 777a∨成人精品桃花网| 91精品久久久久久久久99蜜臂 | 久久婷婷国产综合国色天香| 欧美α欧美αv大片| 久久综合五月天婷婷伊人| 2024国产精品视频| 国产精品护士白丝一区av| 亚洲精品欧美专区| 日日摸夜夜添夜夜添精品视频| 美女精品自拍一二三四| 国产成人在线视频网站| 色综合久久久久综合体桃花网| 欧美这里有精品| 91精品久久久久久久久99蜜臂| 久久久久久久综合狠狠综合| 亚洲国产精品成人综合| 亚洲精品伦理在线| 久久精品国产秦先生| 成人av中文字幕| 欧美日韩视频第一区| 精品区一区二区| 最新成人av在线| 日本sm残虐另类| 波波电影院一区二区三区| 91成人免费电影| 亚洲精品一区二区三区影院| 国产精品理伦片| 日本伊人色综合网| 成人av网站在线| 91精品国产综合久久蜜臀| 国产拍揄自揄精品视频麻豆| 一区二区三区四区亚洲| 狠狠色丁香婷婷综合| 在线国产亚洲欧美| 国产日韩三级在线| 天天色天天操综合| 99精品热视频| 欧美电视剧在线观看完整版| 亚洲精品视频一区| 国产精品自在在线| 欧美精品tushy高清| 中文字幕精品三区| 青青草原综合久久大伊人精品 | 91精品国产综合久久久久| 国产精品网站在线观看| 日本特黄久久久高潮| 99久久精品免费看| 久久先锋资源网| 日韩av一二三| 一本色道久久综合精品竹菊| 久久久影院官网| 男人的j进女人的j一区| 欧洲一区在线电影| 1000精品久久久久久久久| 国产一区二区福利视频| 制服丝袜亚洲网站| 亚洲与欧洲av电影| 99视频一区二区三区| 久久久精品国产免费观看同学| 日本vs亚洲vs韩国一区三区 | 久久久精品一品道一区| 免费日本视频一区| 欧美高清性hdvideosex| 亚洲精品欧美激情| 91丨porny丨户外露出| 久久青草国产手机看片福利盒子 | 亚洲国产精品视频| 91免费看片在线观看| 国产精品你懂的| 国产精品一区专区| 久久久亚洲高清| 国产一区二区三区免费看| 日韩午夜三级在线| 青草av.久久免费一区| 欧美午夜影院一区| 一区二区三区欧美在线观看| 色综合天天综合色综合av | 亚洲欧洲日韩一区二区三区| 国产精品中文字幕日韩精品| 久久综合精品国产一区二区三区| 激情综合网天天干| 亚洲精品一区二区三区蜜桃下载| 男女性色大片免费观看一区二区| 欧美一区二区三区的| 免费久久99精品国产| 日韩免费观看高清完整版在线观看| 日本成人超碰在线观看| 日韩一区二区精品| 精品无人区卡一卡二卡三乱码免费卡| 91精品婷婷国产综合久久性色| 午夜视频一区二区| 日韩视频一区二区在线观看| 国产综合色精品一区二区三区| 日韩精品中文字幕一区| 国内精品自线一区二区三区视频| 精品国产1区二区| 成人精品视频一区二区三区 | 久久av中文字幕片| 久久人人97超碰com| 播五月开心婷婷综合| 亚洲欧美日韩国产综合| 在线视频观看一区| 日本不卡一区二区三区高清视频| 精品久久99ma| 国产成人精品免费看| 亚洲桃色在线一区| 欧美人与z0zoxxxx视频| 国内外成人在线视频| 日韩一区在线播放| 制服丝袜亚洲精品中文字幕| 激情文学综合网| 亚洲免费av高清| 日韩欧美中文字幕一区| 国产**成人网毛片九色| 一区二区三区色| 欧美成人一区二区三区片免费| 懂色av中文字幕一区二区三区 |