SetHypergraph.public class HypergraphBPG extends AbstractArchetypeGraph implements Hypergraph
SetHypergraphAbstractArchetypeGraph.RequirementsUserDataContainer.CopyAction| Modifier and Type | Field and Description |
|---|---|
protected BipartiteGraph |
bpg
Deprecated.
|
static BipartiteGraph.Choice |
EDGE
Deprecated.
|
static BipartiteGraph.Choice |
VERTEX
Deprecated.
|
edge_requirements, mEdgeIDs, mGraphListenerHandler, mVertexIDs, vertex_requirementsfactory, udc_delegateSUBSET_MANAGER| Constructor and Description |
|---|
HypergraphBPG()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Hyperedge |
addEdge(Hyperedge e)
Deprecated.
Adds a single edge to the graph
|
void |
addEdges(java.util.Set edges)
Deprecated.
|
void |
addUserDatum(java.lang.Object key,
java.lang.Object datum,
UserDataContainer.CopyAction copyAct)
Deprecated.
Adds the specified data with the specified key to this object's
user data repository, with the specified CopyAction.
|
Hypervertex |
addVertex(Hypervertex v)
Deprecated.
Adds
v to this graph. |
void |
addVertices(java.util.Set vertices)
Deprecated.
|
ArchetypeGraph |
copy()
Deprecated.
Creates a replica of this graph.
|
BipartiteGraph |
getBipartiteGraphEquivalent()
Deprecated.
Returns a BipartiteGraph equivalent to this Graph.
|
ArchetypeEdge |
getEdgeCorrespondingTo(BipartiteVertex vertex2)
Deprecated.
|
java.util.Set |
getEdges()
Deprecated.
Returns the set of all edges in the graph.
|
java.lang.Object |
getUserDatum(java.lang.Object key)
Deprecated.
Retrieves the object in this object's user data repository to which key
refers.
|
UserDataContainer.CopyAction |
getUserDatumCopyAction(java.lang.Object key)
Deprecated.
Retrieves the CopyAction for the object stored in this object's
user data repository to which key refers.
|
java.util.Iterator |
getUserDatumKeyIterator()
Deprecated.
Provides an iterator over this object's user data repository key set.
|
ArchetypeVertex |
getVertexCorrespondingTo(BipartiteVertex vertex2)
Deprecated.
|
java.util.Set |
getVertices()
Deprecated.
Returns a set of all the vertices in the graph.
|
void |
importUserData(UserDataContainer udc)
Deprecated.
Takes the user data stored in udc and copies it to this object's
user data repository, respecting each datum's CopyAction.
|
protected void |
initialize()
Deprecated.
Initializes all of the graph's internal data structures.
|
ArchetypeGraph |
newInstance()
Deprecated.
Creates a new empty graph of the same type as this graph, by cloning this
graph and then clearing the extraneous fields.
|
int |
numEdges()
Deprecated.
Returns a count of the number of edges in the graph.
|
int |
numVertices()
Deprecated.
Returns a count of the number of vertices in the graph.
|
void |
removeAllEdges()
Deprecated.
Removes all edges from this graph.
|
void |
removeAllVertices()
Deprecated.
Removes all vertices (and, therefore, all edges) from this graph.
|
void |
removeEdge(Hyperedge e)
Deprecated.
Removes
e from this graph. |
void |
removeEdges(java.util.Set edges)
Deprecated.
Removes all elements of
edges from this graph. |
java.lang.Object |
removeUserDatum(java.lang.Object key)
Deprecated.
Retrieves the object in this object's user data repository to which key
refers, and removes it from the repository.
|
void |
removeVertex(Hypervertex v)
Deprecated.
Removes
v from this graph. |
void |
removeVertices(java.util.Set vertices)
Deprecated.
Removes all elements of
vertices from this graph. |
void |
setUserDatum(java.lang.Object key,
java.lang.Object datum,
UserDataContainer.CopyAction copyAct)
Deprecated.
If key refers to an existing user datum in this object's repository,
that datum is replaced by the specified datum.
|
addAllNotInitializers, addListener, checkConstraints, getEdgeConstraints, getVertexConstraints, listenersExist, removeListener, toStringclone, containsUserDatumKey, setUserDataFactoryequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListener, getEdgeConstraints, getVertexConstraints, removeListenerclone, containsUserDatumKeyprotected BipartiteGraph bpg
public static final BipartiteGraph.Choice VERTEX
public static final BipartiteGraph.Choice EDGE
protected void initialize()
AbstractArchetypeGraph
Note: this method is not a substitute for
removeAllVertices(), as it will not notify the vertices
and edges that they have been removed from the graph.
initialize in class AbstractArchetypeGraphpublic ArchetypeGraph newInstance()
AbstractArchetypeGraphnewInstance in interface ArchetypeGraphnewInstance in class AbstractArchetypeGraphArchetypeGraph.newInstance()public Hypervertex addVertex(Hypervertex v)
v to this graph.addVertex in interface Hypergraphpublic Hyperedge addEdge(Hyperedge e)
addEdge in interface HypergraphHypergraph.addEdge(edu.uci.ics.jung.graph.Hyperedge)public java.util.Set getVertices()
getVertices in interface ArchetypeGraphArchetypeGraph.getVertices()public java.util.Set getEdges()
getEdges in interface ArchetypeGraphArchetypeGraph.getEdges()public int numVertices()
numVertices in interface ArchetypeGraphnumVertices in class AbstractArchetypeGraphArchetypeGraph.numVertices()public int numEdges()
numEdges in interface ArchetypeGraphnumEdges in class AbstractArchetypeGraphArchetypeGraph.numEdges()public void removeVertex(Hypervertex v)
Hypergraphv from this graph. Throws
IllegalArgumentException if v is not
in this graph.removeVertex in interface Hypergraphpublic void removeEdge(Hyperedge e)
Hypergraphe from this graph. Throws
IllegalArgumentException if e is not
in this graph.removeEdge in interface Hypergraphpublic void addVertices(java.util.Set vertices)
public void addEdges(java.util.Set edges)
public void removeVertices(java.util.Set vertices)
ArchetypeGraphvertices from this graph.
If any element of vertices is not part of this graph,
then throws IllegalArgumentException. If this
exception is thrown, any vertices that may have been removed already
are not guaranteed to be restored to the graph. Prunes any resultant
ill-formed edges.removeVertices in interface ArchetypeGraphvertices - the set of vertices to be removedArchetypeGraph.removeVertices(java.util.Set)public void removeEdges(java.util.Set edges)
ArchetypeGraphedges from this graph.
If any element of edges is not part of this graph,
then throws IllegalArgumentException. If this
exception is thrown, any edges that may have been removed already
are not guaranteed to be restored to the graph.removeEdges in interface ArchetypeGraphArchetypeGraph.removeEdges(java.util.Set)public void removeAllEdges()
AbstractArchetypeGraphremoveEdge on all edges of this graph.removeAllEdges in interface ArchetypeGraphremoveAllEdges in class AbstractArchetypeGraphArchetypeGraph.removeAllEdges()public void removeAllVertices()
AbstractArchetypeGraphremoveVertex on all
vertices of this graph.removeAllVertices in interface ArchetypeGraphremoveAllVertices in class AbstractArchetypeGraphArchetypeGraph.removeAllVertices()public ArchetypeGraph copy()
AbstractArchetypeGraphcopy in interface ArchetypeGraphcopy in class AbstractArchetypeGraphArchetypeGraph.copy()public void addUserDatum(java.lang.Object key,
java.lang.Object datum,
UserDataContainer.CopyAction copyAct)
UserDataContaineraddUserDatum in interface UserDataContaineraddUserDatum in class UserDataDelegatekey - the key of the datum being addeddatum - the datum being addedcopyAct - the CopyAction of the datum being addedUserDataContainer.addUserDatum(java.lang.Object, java.lang.Object, edu.uci.ics.jung.utils.UserDataContainer.CopyAction)public void importUserData(UserDataContainer udc)
UserDataContainerimportUserData in interface UserDataContainerimportUserData in class UserDataDelegateudc - the source of the user data to be copied into this containerUserDataContainer.importUserData(edu.uci.ics.jung.utils.UserDataContainer)public java.util.Iterator getUserDatumKeyIterator()
UserDataContainergetUserDatumKeyIterator in interface UserDataContainergetUserDatumKeyIterator in class UserDataDelegateUserDataContainer.getUserDatumKeyIterator()public UserDataContainer.CopyAction getUserDatumCopyAction(java.lang.Object key)
UserDataContainergetUserDatumCopyAction in interface UserDataContainergetUserDatumCopyAction in class UserDataDelegatekey - the key of the datum whose CopyAction is requestedUserDataContainer.getUserDatumCopyAction(java.lang.Object)public java.lang.Object getUserDatum(java.lang.Object key)
UserDataContainergetUserDatum in interface UserDataContainergetUserDatum in class UserDataDelegatekey - the key of the datum to retrieveUserDataContainer.getUserDatum(java.lang.Object)public void setUserDatum(java.lang.Object key,
java.lang.Object datum,
UserDataContainer.CopyAction copyAct)
UserDataContainersetUserDatum in interface UserDataContainersetUserDatum in class UserDataDelegatekey - the key of the datum being added/modifieddatum - the replacement/new datumcopyAct - the CopyAction for the new (key, datum) pairUserDataContainer.setUserDatum(java.lang.Object, java.lang.Object, edu.uci.ics.jung.utils.UserDataContainer.CopyAction)public java.lang.Object removeUserDatum(java.lang.Object key)
UserDataContainerremoveUserDatum in interface UserDataContainerremoveUserDatum in class UserDataDelegatekey - the key of the datum to be removedUserDataContainer.removeUserDatum(java.lang.Object)public ArchetypeVertex getVertexCorrespondingTo(BipartiteVertex vertex2)
vertex2 - vertex2public ArchetypeEdge getEdgeCorrespondingTo(BipartiteVertex vertex2)
vertex2 - vertex2public BipartiteGraph getBipartiteGraphEquivalent()