OSDN Git Service

removed all files
[xerial/xerial-core.git] / src / main / java / org / xerial / util / graph / Edge.java
diff --git a/src/main/java/org/xerial/util/graph/Edge.java b/src/main/java/org/xerial/util/graph/Edge.java
deleted file mode 100755 (executable)
index faeccba..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-/*--------------------------------------------------------------------------\r
- *  Copyright 2004 Taro L. Saito\r
- *\r
- *  Licensed under the Apache License, Version 2.0 (the "License");\r
- *  you may not use this file except in compliance with the License.\r
- *  You may obtain a copy of the License at\r
- *\r
- *     http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- *  Unless required by applicable law or agreed to in writing, software\r
- *  distributed under the License is distributed on an "AS IS" BASIS,\r
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- *  See the License for the specific language governing permissions and\r
- *  limitations under the License.\r
- *--------------------------------------------------------------------------*/\r
-//--------------------------------------\r
-// XerialJ\r
-//\r
-// Edge.java\r
-// Since: 2004/12/27\r
-//\r
-// $URL: http://www.xerial.org/svn/project/XerialJ/trunk/xerial-core/src/main/java/org/xerial/util/graph/Edge.java $ \r
-// $Author: leo $\r
-//--------------------------------------\r
-package org.xerial.util.graph;\r
-\r
-/**\r
- * Edge structure from source node ID to destination node ID\r
- * \r
- * @author leo\r
- * \r
- */\r
-public class Edge implements Comparable<Edge>\r
-{\r
-    final int srcNodeID;\r
-    final int destNodeID;\r
-\r
-    /**\r
-     * @param edge\r
-     * @param src\r
-     * @param dest\r
-     */\r
-    public Edge(int src, int dest)\r
-    {\r
-        this.srcNodeID = src;\r
-        this.destNodeID = dest;\r
-    }\r
-\r
-    public int getDestNodeID()\r
-    {\r
-        return destNodeID;\r
-    }\r
-\r
-    public int getSourceNodeID()\r
-    {\r
-        return srcNodeID;\r
-    }\r
-\r
-    public boolean equals(Object o)\r
-    {\r
-        if (o instanceof Edge)\r
-        {\r
-            Edge e = (Edge) o;\r
-            return (srcNodeID == e.getSourceNodeID()) && (destNodeID == e.getDestNodeID());\r
-        }\r
-        else\r
-            return false;\r
-    }\r
-\r
-    @Override\r
-    public int hashCode()\r
-    {\r
-        int hash = 31;\r
-        hash += srcNodeID * 271;\r
-        hash += destNodeID * 271;\r
-        return hash % 1987;\r
-    }\r
-\r
-    public int compareTo(Edge o)\r
-    {\r
-        int diff = srcNodeID - o.getSourceNodeID();\r
-        return (diff != 0) ? diff : destNodeID - o.getDestNodeID();\r
-    }\r
-\r
-    public String toString()\r
-    {\r
-        return String.format("(%d, %d)", srcNodeID, destNodeID);\r
-    }\r
-}\r