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

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

?? edge.java

?? id3的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电影在线观看| 欧美夫妻性生活| 精品久久久久久久久久久久久久久久久| 中文字幕一区二区三| 成人av中文字幕| 亚洲一区中文在线| 91.com在线观看| 国产a久久麻豆| 国产99久久久国产精品潘金网站| 久久成人久久爱| 国产精品人妖ts系列视频| 欧美日韩激情一区| 国产精品一二三区| 亚洲综合色成人| 亚洲va欧美va天堂v国产综合| 日韩欧美成人午夜| 91浏览器入口在线观看| 免费日韩伦理电影| 亚洲人成网站在线| 精品区一区二区| 色网综合在线观看| 亚洲网友自拍偷拍| 欧美国产精品一区二区三区| 在线观看一区日韩| 韩国一区二区在线观看| 亚洲午夜激情av| 麻豆精品在线观看| 亚欧色一区w666天堂| 免费看日韩精品| 成人爱爱电影网址| 欧美性极品少妇| 91年精品国产| 欧美一区二区三区成人| 欧美日韩视频一区二区| 日本精品免费观看高清观看| 成人免费毛片片v| 麻豆成人在线观看| 99国产精品国产精品久久| 粉嫩高潮美女一区二区三区| 91精品91久久久中77777| 欧美精品自拍偷拍动漫精品| 久久久亚洲欧洲日产国码αv| 欧美日韩色一区| 国产片一区二区三区| 亚洲精品在线电影| 久久久久久久网| 一区二区在线观看不卡| 亚洲人吸女人奶水| 久久国产麻豆精品| 色婷婷av一区二区三区之一色屋| 欧美精品亚洲二区| 亚洲日本va午夜在线影院| 国产精品福利av| 亚洲精品久久久久久国产精华液| 久久精品国产精品青草| 欧美日韩国产三级| 国产精品久久777777| 国产老妇另类xxxxx| 欧美高清性hdvideosex| 成人欧美一区二区三区在线播放| 九九九精品视频| 成人sese在线| 国产欧美视频一区二区三区| 蜜臀久久久久久久| 欧美日本视频在线| 亚洲一区二区三区国产| kk眼镜猥琐国模调教系列一区二区| 97se亚洲国产综合自在线不卡| 精品国内片67194| 三级一区在线视频先锋| 精品一区二区三区免费播放 | 91国偷自产一区二区三区观看| 久久久久97国产精华液好用吗| 麻豆精品视频在线观看视频| 欧美在线观看视频在线| 亚洲欧美色一区| 99热精品一区二区| 亚洲天天做日日做天天谢日日欢| 成人精品国产福利| 中文字幕不卡在线观看| 国产69精品久久久久777| 久久婷婷国产综合精品青草| 国产精品久久久久久久久免费桃花| 国产一区二区0| 欧美日韩一区国产| 亚洲图片欧美一区| 欧美日韩一区二区三区在线| 亚洲制服丝袜av| 久久日韩精品一区二区五区| 精品一区二区三区影院在线午夜| 日韩精品中文字幕一区| 国产一区二区三区香蕉| 欧美国产欧美综合| av在线播放一区二区三区| 椎名由奈av一区二区三区| 色狠狠桃花综合| 五月天国产精品| 97久久久精品综合88久久| 亚洲视频在线一区观看| 欧美乱熟臀69xxxxxx| 日本欧美一区二区三区乱码| 色8久久精品久久久久久蜜| 一区二区三区国产精华| 97se亚洲国产综合自在线观| 亚洲gay无套男同| 精品少妇一区二区三区免费观看| 国产91清纯白嫩初高中在线观看| 国产精品久久久久久久浪潮网站| 在线观看国产一区二区| 玖玖九九国产精品| 国产精品伦一区| 91麻豆精品91久久久久同性| 丁香另类激情小说| 天天色综合天天| 国产欧美一区二区三区在线看蜜臀| 欧美主播一区二区三区美女| 黑人巨大精品欧美黑白配亚洲| 亚洲精品乱码久久久久久黑人 | 免费成人av资源网| 中文字幕一区日韩精品欧美| 91精品国产色综合久久ai换脸 | 国产乱码字幕精品高清av| 亚洲精品国久久99热| 欧美成人午夜电影| 在线视频亚洲一区| 成人av资源在线观看| 久久99久久精品欧美| 一区二区三区欧美久久| 欧美激情综合五月色丁香| 91精品国产综合久久久久久久| 成人av网在线| 国产麻豆9l精品三级站| 天天免费综合色| 亚洲激情图片一区| 久久精品免视看| 国产aⅴ综合色| 久久激五月天综合精品| 亚洲高清中文字幕| 一区二区三区精密机械公司| 国产日韩欧美制服另类| 欧美电影免费观看高清完整版在线观看 | 欧美日韩mp4| 色悠悠久久综合| 99久久婷婷国产综合精品| 国产精品456| 久久精品国产成人一区二区三区| 视频一区二区三区中文字幕| 亚洲电影欧美电影有声小说| 亚洲欧洲成人自拍| 亚洲欧洲三级电影| 国产精品初高中害羞小美女文 | www.色精品| 不卡大黄网站免费看| 成人h精品动漫一区二区三区| 国产高清不卡一区二区| 国产原创一区二区三区| 国产制服丝袜一区| 国产乱码精品一区二区三区忘忧草 | 久久午夜国产精品| 久久蜜桃av一区精品变态类天堂| 欧美日韩综合在线免费观看| 欧美曰成人黄网| 欧美在线免费视屏| 精品1区2区3区| 8x8x8国产精品| 久久综合久久综合亚洲| 国产亚洲欧美在线| 国产精品免费观看视频| 亚洲色图.com| 亚洲va国产天堂va久久en| 日韩有码一区二区三区| 国产资源精品在线观看| 成人黄色电影在线| 精品视频123区在线观看| 日韩欧美中文一区二区| 99久久伊人网影院| 欧美综合在线视频| 日韩一区二区影院| 久久久国产午夜精品| 国产精品久久久久一区二区三区共| 亚洲男人的天堂在线观看| 午夜久久久久久久久| 韩国视频一区二区| 91国偷自产一区二区三区成为亚洲经典| 欧美性色黄大片手机版| 欧美大胆人体bbbb| 亚洲欧洲一区二区三区| 日韩成人精品视频| 国产成人aaa| 欧美日韩电影一区| 日本一区二区三区高清不卡| 一区二区三区鲁丝不卡| 激情五月激情综合网| 色天天综合久久久久综合片| 日韩精品中文字幕一区| 亚洲女同女同女同女同女同69| 美国三级日本三级久久99| 91官网在线免费观看| 国产性色一区二区| 免费观看成人av|