agl2
Interface EdgeRep

All Known Subinterfaces:
BidirectedEdgeRep, DirectedEdgeRep, UndirectedEdgeRep
All Known Implementing Classes:
AdjacentEdgeRep, AdjacentMultiEdgeRep, AdjacentNodeRep, BidirectedRepAdaptor, BitMatrixRep

public interface EdgeRep

The EdgeRep description.


Method Summary
 Edge addEdge(java.lang.Object u, java.lang.Object v)
           
 java.lang.Object addNode(java.lang.Object o)
          Add a node to the edge rep.
 EdgeRep cloneRep()
           
 Edge getEdge(java.lang.Object u, java.lang.Object v)
           
 java.util.Set getEdges()
           
 java.util.Map getMap(GraphTag tag)
          GraphTag represents map data that is exported by the type.
 java.util.Set getNodes()
           
 boolean isNode(java.lang.Object v)
           
 java.util.Set provides()
          Each EdgeRep provides certain capabilites For example, it may support multiple edges, or an index of the nodes.
 void remEdge(Edge e)
           
 void remNode(java.lang.Object v)
           
 

Method Detail

getNodes

public java.util.Set getNodes()

getEdges

public java.util.Set getEdges()

addNode

public java.lang.Object addNode(java.lang.Object o)
Add a node to the edge rep.

Returns:
An objectof type Vertex or null (any object is a vertex)

remNode

public void remNode(java.lang.Object v)

isNode

public boolean isNode(java.lang.Object v)

addEdge

public Edge addEdge(java.lang.Object u,
                    java.lang.Object v)

remEdge

public void remEdge(Edge e)

getEdge

public Edge getEdge(java.lang.Object u,
                    java.lang.Object v)

provides

public java.util.Set provides()
Each EdgeRep provides certain capabilites For example, it may support multiple edges, or an index of the nodes. Graphs can use this information to choose a representation from the available candidates.

Returns:
A set of GraphTag

getMap

public java.util.Map getMap(GraphTag tag)
GraphTag represents map data that is exported by the type. Certain EdgeRep classes naturally provide an efficient map. These maps can be aquired using the getMap call. An EdgeRep may return null to signify that the requested map is not supported.

Returns:
internal map for the associated tag.

cloneRep

public EdgeRep cloneRep()