You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2011/06/12 23:20:45 UTC

svn commit: r1134988 - in /commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph: LabeledEdge.java LabeledVertex.java LabeledWeightedEdge.java

Author: simonetripodi
Date: Sun Jun 12 21:20:45 2011
New Revision: 1134988

URL: http://svn.apache.org/viewvc?rev=1134988&view=rev
Log:
first checkin of labeled graph element

Added:
    commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/LabeledEdge.java   (with props)
    commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/LabeledVertex.java   (with props)
    commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/LabeledWeightedEdge.java   (with props)

Added: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/LabeledEdge.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/LabeledEdge.java?rev=1134988&view=auto
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/LabeledEdge.java (added)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/LabeledEdge.java Sun Jun 12 21:20:45 2011
@@ -0,0 +1,32 @@
+package org.apache.commons.graph;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * An <i>edge labeling</i> is a function mapping {@link Edge}s of a {@link Graph} to a set of <i>labels</i>.
+ * A {@link Graph} with such a function defined is called an <i>edge-labeled graph</i>.
+ *
+ * @param <V> the Graph vertices type
+ */
+public interface LabeledEdge<V extends Vertex>
+    extends Edge<V>, Labeled
+{
+
+}

Propchange: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/LabeledEdge.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/LabeledEdge.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/LabeledEdge.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/LabeledVertex.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/LabeledVertex.java?rev=1134988&view=auto
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/LabeledVertex.java (added)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/LabeledVertex.java Sun Jun 12 21:20:45 2011
@@ -0,0 +1,30 @@
+package org.apache.commons.graph;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * A <i>vertex labeling</i> is a function mapping a set of {@link Vertex} of a {@link Graph} to a set of <i>labels</i>.
+ * A {@link Graph} with such a function defined is called a <i>vertex-labeled graph</i>.
+ */
+public interface LabeledVertex
+    extends Vertex, Labeled
+{
+
+}

Propchange: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/LabeledVertex.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/LabeledVertex.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/LabeledVertex.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/LabeledWeightedEdge.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/LabeledWeightedEdge.java?rev=1134988&view=auto
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/LabeledWeightedEdge.java (added)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/LabeledWeightedEdge.java Sun Jun 12 21:20:45 2011
@@ -0,0 +1,33 @@
+package org.apache.commons.graph;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * A {@link LabeledEdge} with weight.
+ *
+ * @param <V> the Graph vertices type
+ * @see WeightedEdge
+ * @see LabeledEdge
+ */
+public interface LabeledWeightedEdge<V extends Vertex>
+    extends WeightedEdge<V>, Labeled
+{
+
+}

Propchange: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/LabeledWeightedEdge.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/LabeledWeightedEdge.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/LabeledWeightedEdge.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain