agl2.rep
Class BidirectedRepAdaptor
java.lang.Object
|
+--agl2.rep.BidirectedRepAdaptor
- All Implemented Interfaces:
- BidirectedEdgeRep, DirectedEdgeRep, EdgeRep, java.io.Serializable
- public class BidirectedRepAdaptor
- extends java.lang.Object
- implements BidirectedEdgeRep, java.io.Serializable
The BidirectedRepAdaptor
description.
- See Also:
- Serialized Form
Field Summary |
static java.util.HashSet |
repTags
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
repTags
public static final java.util.HashSet repTags
BidirectedRepAdaptor
public BidirectedRepAdaptor()
BidirectedRepAdaptor
public BidirectedRepAdaptor(DirectedEdgeRep in,
DirectedEdgeRep out)
cloneRep
public EdgeRep cloneRep()
- Specified by:
cloneRep
in interface EdgeRep
getNodes
public java.util.Set getNodes()
- Specified by:
getNodes
in interface EdgeRep
getEdges
public java.util.Set getEdges()
- Specified by:
getEdges
in interface EdgeRep
addNode
public java.lang.Object addNode(java.lang.Object o)
- Description copied from interface:
EdgeRep
- Add a node to the edge rep.
- Specified by:
addNode
in interface EdgeRep
- Returns:
- An objectof type Vertex or null (any object is a vertex)
remNode
public void remNode(java.lang.Object o)
- Specified by:
remNode
in interface EdgeRep
isNode
public boolean isNode(java.lang.Object v)
- Specified by:
isNode
in interface EdgeRep
addEdge
public Edge addEdge(java.lang.Object u,
java.lang.Object v)
- Specified by:
addEdge
in interface EdgeRep
remEdge
public void remEdge(Edge e)
- Specified by:
remEdge
in interface EdgeRep
getEdge
public Edge getEdge(java.lang.Object u,
java.lang.Object v)
- Specified by:
getEdge
in interface EdgeRep
getAdjacentNodes
public java.util.Set getAdjacentNodes(java.lang.Object o)
- Specified by:
getAdjacentNodes
in interface DirectedEdgeRep
getAdjacentOutNodes
public java.util.Set getAdjacentOutNodes(java.lang.Object o)
- Specified by:
getAdjacentOutNodes
in interface BidirectedEdgeRep
getAdjacentEdges
public java.util.Set getAdjacentEdges(java.lang.Object o)
- Specified by:
getAdjacentEdges
in interface DirectedEdgeRep
getAdjacentOutEdges
public java.util.Set getAdjacentOutEdges(java.lang.Object o)
- Specified by:
getAdjacentOutEdges
in interface BidirectedEdgeRep
getAdjacentInNodes
public java.util.Set getAdjacentInNodes(java.lang.Object o)
- Specified by:
getAdjacentInNodes
in interface BidirectedEdgeRep
getAdjacentInEdges
public java.util.Set getAdjacentInEdges(java.lang.Object o)
- Specified by:
getAdjacentInEdges
in interface BidirectedEdgeRep
provides
public java.util.Set provides()
- Description copied from interface:
EdgeRep
- 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.
- Specified by:
provides
in interface EdgeRep
- Returns:
- A set of GraphTag
getMap
public java.util.Map getMap(GraphTag tag)
- Description copied from interface:
EdgeRep
- 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.
- Specified by:
getMap
in interface EdgeRep
- Returns:
- internal map for the associated tag.
reverse
public BidirectedEdgeRep reverse()
- Specified by:
reverse
in interface BidirectedEdgeRep
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object