Author: simonetripodi Date: Sun Jul 3 21:49:18 2011 New Revision: 1142509 URL: http://svn.apache.org/viewvc?rev=1142509&view=rev Log: first checkin of SpanningTree interface
Added: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/SpanningTree.java (with props) Added: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/SpanningTree.java URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/SpanningTree.java?rev=1142509&view=auto ============================================================================== --- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/SpanningTree.java (added) +++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/SpanningTree.java Sun Jul 3 21:49:18 2011 @@ -0,0 +1,40 @@ +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 SpanningTree} of a connected, undirected graph is a tree + * composed of all the vertices and some (or perhaps all) of the edges of the Graph. + * + * @param <V> the Graph vertices type + * @param <WE> the Graph weighted edges type + */ +public interface SpanningTree<V extends Vertex, WE extends WeightedEdge> + extends UndirectedGraph<V, WE>, WeightedGraph<V, WE> +{ + + /** + * Gets the weight attribute of the {@code SpanningTree} object. + * + * @return the weight attribute of the {@code SpanningTree} object. + */ + Double getWeight(); + +} Propchange: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/SpanningTree.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/SpanningTree.java ------------------------------------------------------------------------------ svn:keywords = Date Author Id Revision HeadURL Propchange: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/SpanningTree.java ------------------------------------------------------------------------------ svn:mime-type = text/plain