org.apache.commons.graph
Interface Graph

All Known Subinterfaces:
DirectedGraph, MutableDirectedGraph, MutableGraph, UndirectedGraph, WeightedGraph
All Known Implementing Classes:
DDirectedGraph, DirectedGraphImpl, DirectedGraphWrapper, JDependGraph, MinimumSpanningForest, UndirectedGraphImpl, WeightedGraphWrapper

public interface Graph

Description of the Interface


Method Summary
 java.util.Set getEdges()
          getEdges - Returns the total set of Edges in the graph.
 java.util.Set getEdges(Vertex v)
          getEdges( Vertex ) - This method will return all edges which touch this vertex.
 java.util.Set getVertices()
          getVertices - Returns the total set of Vertices in the graph.
 java.util.Set getVertices(Edge e)
          getVertices( Edge ) - This method will return the set of Verticies on this Edge.
 

Method Detail

getVertices

public java.util.Set getVertices()
getVertices - Returns the total set of Vertices in the graph.


getEdges

public java.util.Set getEdges()
getEdges - Returns the total set of Edges in the graph.


getEdges

public java.util.Set getEdges(Vertex v)
getEdges( Vertex ) - This method will return all edges which touch this vertex.


getVertices

public java.util.Set getVertices(Edge e)
getVertices( Edge ) - This method will return the set of Verticies on this Edge. (2 for normal edges, > 2 for HyperEdges.)