edu.uci.ics.jung.graph
Interface Hyperedge
- All Superinterfaces:
- ArchetypeEdge, Cloneable, Element, UserDataContainer
- All Known Implementing Classes:
- AbstractHyperedge, CollectionHyperedge, HyperedgeBPG, ListHyperedge, SetHyperedge
public interface Hyperedge
- extends ArchetypeEdge
An element of a Hypergraph that
connects to zero or more Hypervertices.
Note that two different Hyperedges are
NOT equal, even if they point to the same
set of vertices. Also note that Hyperedge
is mutable; it is possible to add and remove
vertices from the edge.
- Author:
- Danyel Fisher, Joshua O'Madadhain
connectVertex
boolean connectVertex(Hypervertex hv1)
- Connects
hv1
to this hyperedge and vice versa.
Does not affect hv1
's membership in the graph.
Equivalent to calling hv1.connectEdge(this)
.
disconnectVertex
boolean disconnectVertex(Hypervertex hv1)
- Disconnects
hv1
from this hyperedge and vice versa.
Does not affect hv1
's membership in the graph.
Equivalent to calling hv1.disconnectEdge(this)
.