public abstract class AbstractHypervertex extends AbstractArchetypeVertex implements Hypervertex
Hypervertex
interface to minimize the effort required to implement this interface.
This class extends UserData, which provides storage and
retrieval mechanisms for user-defined data for each edge instance.
This allows users to attach data to edges without having to extend
this class.
Existing subclasses maintain collections of edges, and infer neighbor collections from these classes. Independent neighbor collections are difficult to maintain for the following reasons:
Vertex implementations
will need to provide support for edge set mutability both in the
Hypervertex implementation and in the Hyperedge
implementation.
SetHypergraph,
AbstractHyperedgeUserDataContainer.CopyActionid, m_Graphfactory, udc_delegate| Constructor and Description |
|---|
AbstractHypervertex() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
connectEdge(Hyperedge e)
Connects
he to this hypervertex and vice versa. |
ArchetypeVertex |
copy(ArchetypeGraph g)
Creates a copy of this vertex in graph
g. |
boolean |
disconnectEdge(Hyperedge e)
Disconnects
he from this hypervertex and vice versa. |
protected void |
initialize()
Initializes all the data structures for this element.
|
java.lang.String |
toString()
Returns a human-readable representation of this edge.
|
degree, equals, findEdge, findEdgeSet, getEdges_internal, getEqualVertex, getEquivalentVertex, getIncidentEdges, getIncidentElements, getNeighbors_internal, getNeighbors, isIncident, isNeighborOf, numNeighborsaddGraph_internal, getGraph, hashCode, removeGraph_internaladdUserDatum, clone, containsUserDatumKey, getUserDatum, getUserDatumCopyAction, getUserDatumKeyIterator, importUserData, removeUserDatum, setUserDataFactory, setUserDatumfinalize, getClass, notify, notifyAll, wait, wait, waitdegree, findEdge, findEdgeSet, getEqualVertex, getEquivalentVertex, getIncidentEdges, getNeighbors, isIncident, isNeighborOf, numNeighborsgetGraph, getIncidentElementsaddUserDatum, clone, containsUserDatumKey, getUserDatum, getUserDatumCopyAction, getUserDatumKeyIterator, importUserData, removeUserDatum, setUserDatumpublic ArchetypeVertex copy(ArchetypeGraph g)
ArchetypeVertexg. The vertex
created will be equivalent to this vertex: given
v = this.copy(g), then
this.getEquivalentVertex(g) == v, and
this.equals(v) == true.copy in interface ArchetypeVertexcopy in class AbstractArchetypeVertexg - the graph in which the copied vertex will be placedArchetypeVertex.copy(edu.uci.ics.jung.graph.ArchetypeGraph)protected void initialize()
AbstractElementclone() copies some information that should
not be in the new element.)initialize in class AbstractElementpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public boolean connectEdge(Hyperedge e)
Hypervertexhe to this hypervertex and vice versa.
Does not affect he's membership in the graph.
Equivalent to calling he.connectVertex(this).connectEdge in interface HypervertexHypervertex.connectEdge(Hyperedge)public boolean disconnectEdge(Hyperedge e)
Hypervertexhe from this hypervertex and vice versa.
Does not affect he's membership in the graph.
Equivalent to calling he.disconnectVertex(this).disconnectEdge in interface HypervertexHypervertex.disconnectEdge(Hyperedge)