Coverage Report - net.sourceforge.combean.interfaces.graph.prop.AddEdgeGraphProp
 
Classes in this File Line Coverage Branch Coverage Complexity
AddEdgeGraphProp
N/A
N/A
1
 
 1  
 /*
 2  
     This file is part of Combean.
 3  
 
 4  
     Combean is free software; you can redistribute it and/or modify
 5  
     it under the terms of the GNU General Public License as published by
 6  
     the Free Software Foundation; either version 2 of the License, or
 7  
     (at your option) any later version.
 8  
 
 9  
     Combean is distributed in the hope that it will be useful,
 10  
     but WITHOUT ANY WARRANTY; without even the implied warranty of
 11  
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 12  
     GNU General Public License for more details.
 13  
 
 14  
     You should have received a copy of the GNU General Public License
 15  
     along with Combean; if not, write to the Free Software
 16  
     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 17  
 */
 18  
 /*
 19  
  * Created on 22.03.2005
 20  
  *
 21  
  */
 22  
 package net.sourceforge.combean.interfaces.graph.prop;
 23  
 
 24  
 import net.sourceforge.combean.interfaces.graph.Edge;
 25  
 import net.sourceforge.combean.interfaces.graph.Graph;
 26  
 import net.sourceforge.combean.interfaces.graph.Node;
 27  
 
 28  
 /**
 29  
  * A graph where edges may be added.
 30  
  * 
 31  
  * @author schickin
 32  
  *
 33  
  */
 34  
 public interface AddEdgeGraphProp extends Graph, Freezable {
 35  
     
 36  
     /**
 37  
      * Add an edge between two given nodes.
 38  
      * 
 39  
      * @param from the source node of the edge.
 40  
      * @param to the target node of the edge.
 41  
      * @return the edge which has been inserted into the graph.
 42  
      */
 43  
     public Edge addEdge(Node from, Node to);
 44  
    
 45  
     /**
 46  
      * Reserve storage for given number of edges.
 47  
      * 
 48  
      * @param edgeCapacity the number of edges for which memory shall be
 49  
      * reserved,
 50  
      */
 51  
     public void ensureEdgeCapacity(int edgeCapacity);
 52  
 }