org.apache.commons.graph.domain.basic
Class DirectedGraphWrapper

java.lang.Object
  extended byorg.apache.commons.graph.domain.basic.GraphWrapper
      extended byorg.apache.commons.graph.domain.basic.DirectedGraphWrapper
All Implemented Interfaces:
DirectedGraph, Graph
Direct Known Subclasses:
DDirectedGraph

public class DirectedGraphWrapper
extends GraphWrapper
implements DirectedGraph

Description of the Class


Field Summary
private  DirectedGraph impl
           
 
Constructor Summary
DirectedGraphWrapper()
          Constructor for the DirectedGraphWrapper object
DirectedGraphWrapper(DirectedGraph graph)
          Constructor for the DirectedGraphWrapper object
 
Method Summary
 java.util.Set getInbound(Vertex v)
          Gets the inbound attribute of the DirectedGraphWrapper object
 java.util.Set getOutbound(Vertex v)
          Gets the outbound attribute of the DirectedGraphWrapper object
 Vertex getSource(Edge e)
          Gets the source attribute of the DirectedGraphWrapper object
 Vertex getTarget(Edge e)
          Gets the target attribute of the DirectedGraphWrapper object
 void setDirGraph(DirectedGraph graph)
          Sets the dirGraph attribute of the DirectedGraphWrapper object
 
Methods inherited from class org.apache.commons.graph.domain.basic.GraphWrapper
getEdges, getEdges, getVertices, getVertices, setGraph
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.graph.Graph
getEdges, getEdges, getVertices, getVertices
 

Field Detail

impl

private DirectedGraph impl
Constructor Detail

DirectedGraphWrapper

public DirectedGraphWrapper(DirectedGraph graph)
Constructor for the DirectedGraphWrapper object

Parameters:
graph -

DirectedGraphWrapper

public DirectedGraphWrapper()
Constructor for the DirectedGraphWrapper object

Method Detail

setDirGraph

public void setDirGraph(DirectedGraph graph)
Sets the dirGraph attribute of the DirectedGraphWrapper object


getInbound

public java.util.Set getInbound(Vertex v)
Gets the inbound attribute of the DirectedGraphWrapper object

Specified by:
getInbound in interface DirectedGraph

getOutbound

public java.util.Set getOutbound(Vertex v)
Gets the outbound attribute of the DirectedGraphWrapper object

Specified by:
getOutbound in interface DirectedGraph

getSource

public Vertex getSource(Edge e)
Gets the source attribute of the DirectedGraphWrapper object

Specified by:
getSource in interface DirectedGraph

getTarget

public Vertex getTarget(Edge e)
Gets the target attribute of the DirectedGraphWrapper object

Specified by:
getTarget in interface DirectedGraph