SetHypergraph
.public class HypergraphBPG extends AbstractArchetypeGraph implements Hypergraph
SetHypergraph
AbstractArchetypeGraph.Requirements
UserDataContainer.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_requirements
factory, udc_delegate
SUBSET_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, toString
clone, containsUserDatumKey, setUserDataFactory
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addListener, getEdgeConstraints, getVertexConstraints, removeListener
clone, containsUserDatumKey
protected 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 AbstractArchetypeGraph
public ArchetypeGraph newInstance()
AbstractArchetypeGraph
newInstance
in interface ArchetypeGraph
newInstance
in class AbstractArchetypeGraph
ArchetypeGraph.newInstance()
public Hypervertex addVertex(Hypervertex v)
v
to this graph.addVertex
in interface Hypergraph
public Hyperedge addEdge(Hyperedge e)
addEdge
in interface Hypergraph
Hypergraph.addEdge(edu.uci.ics.jung.graph.Hyperedge)
public java.util.Set getVertices()
getVertices
in interface ArchetypeGraph
ArchetypeGraph.getVertices()
public java.util.Set getEdges()
getEdges
in interface ArchetypeGraph
ArchetypeGraph.getEdges()
public int numVertices()
numVertices
in interface ArchetypeGraph
numVertices
in class AbstractArchetypeGraph
ArchetypeGraph.numVertices()
public int numEdges()
numEdges
in interface ArchetypeGraph
numEdges
in class AbstractArchetypeGraph
ArchetypeGraph.numEdges()
public void removeVertex(Hypervertex v)
Hypergraph
v
from this graph. Throws
IllegalArgumentException
if v
is not
in this graph.removeVertex
in interface Hypergraph
public void removeEdge(Hyperedge e)
Hypergraph
e
from this graph. Throws
IllegalArgumentException
if e
is not
in this graph.removeEdge
in interface Hypergraph
public void addVertices(java.util.Set vertices)
public void addEdges(java.util.Set edges)
public void removeVertices(java.util.Set vertices)
ArchetypeGraph
vertices
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 ArchetypeGraph
vertices
- the set of vertices to be removedArchetypeGraph.removeVertices(java.util.Set)
public void removeEdges(java.util.Set edges)
ArchetypeGraph
edges
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 ArchetypeGraph
ArchetypeGraph.removeEdges(java.util.Set)
public void removeAllEdges()
AbstractArchetypeGraph
removeEdge
on all edges of this graph.removeAllEdges
in interface ArchetypeGraph
removeAllEdges
in class AbstractArchetypeGraph
ArchetypeGraph.removeAllEdges()
public void removeAllVertices()
AbstractArchetypeGraph
removeVertex
on all
vertices of this graph.removeAllVertices
in interface ArchetypeGraph
removeAllVertices
in class AbstractArchetypeGraph
ArchetypeGraph.removeAllVertices()
public ArchetypeGraph copy()
AbstractArchetypeGraph
copy
in interface ArchetypeGraph
copy
in class AbstractArchetypeGraph
ArchetypeGraph.copy()
public void addUserDatum(java.lang.Object key, java.lang.Object datum, UserDataContainer.CopyAction copyAct)
UserDataContainer
addUserDatum
in interface UserDataContainer
addUserDatum
in class UserDataDelegate
key
- 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)
UserDataContainer
importUserData
in interface UserDataContainer
importUserData
in class UserDataDelegate
udc
- the source of the user data to be copied into this containerUserDataContainer.importUserData(edu.uci.ics.jung.utils.UserDataContainer)
public java.util.Iterator getUserDatumKeyIterator()
UserDataContainer
getUserDatumKeyIterator
in interface UserDataContainer
getUserDatumKeyIterator
in class UserDataDelegate
UserDataContainer.getUserDatumKeyIterator()
public UserDataContainer.CopyAction getUserDatumCopyAction(java.lang.Object key)
UserDataContainer
getUserDatumCopyAction
in interface UserDataContainer
getUserDatumCopyAction
in class UserDataDelegate
key
- the key of the datum whose CopyAction is requestedUserDataContainer.getUserDatumCopyAction(java.lang.Object)
public java.lang.Object getUserDatum(java.lang.Object key)
UserDataContainer
getUserDatum
in interface UserDataContainer
getUserDatum
in class UserDataDelegate
key
- 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)
UserDataContainer
setUserDatum
in interface UserDataContainer
setUserDatum
in class UserDataDelegate
key
- 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)
UserDataContainer
removeUserDatum
in interface UserDataContainer
removeUserDatum
in class UserDataDelegate
key
- the key of the datum to be removedUserDataContainer.removeUserDatum(java.lang.Object)
public ArchetypeVertex getVertexCorrespondingTo(BipartiteVertex vertex2)
vertex2
- vertex2
public ArchetypeEdge getEdgeCorrespondingTo(BipartiteVertex vertex2)
vertex2
- vertex2
public BipartiteGraph getBipartiteGraphEquivalent()