public class UndirectedHyperGraphHashSet<VertexType,EdgeType extends UndirectedHyperEdge<VertexType>> extends AbstractGraph<VertexType,EdgeType> implements UndirectedHyperGraph<VertexType,EdgeType>
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<VertexType,java.util.Set<EdgeType>> |
V2E |
E, V
Constructor and Description |
---|
UndirectedHyperGraphHashSet() |
Modifier and Type | Method and Description |
---|---|
boolean |
addEdge(EdgeType edge) |
boolean |
addVertex(VertexType vertex) |
void |
clear() |
java.util.Set<VertexType> |
findChildrenOf(VertexType vertex) |
java.util.Set<EdgeType> |
findEdgesOf(java.util.Set<VertexType> vertices) |
java.util.Set<EdgeType> |
findEdgesOf(VertexType vertex) |
boolean |
removeEdge(EdgeType edge) |
boolean |
removeVertex(VertexType vertex) |
java.lang.String |
toString() |
addEdges, addVertices, findNeighborsOf, getEdges, getVertices, removeEdges, removeVertices
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addEdges, addVertices, findNeighborsOf, getEdges, getVertices, removeEdges, removeVertices
protected java.util.Map<VertexType,java.util.Set<EdgeType extends UndirectedHyperEdge<VertexType>>> V2E
public boolean addVertex(VertexType vertex)
addVertex
in interface Graph<VertexType,EdgeType extends UndirectedHyperEdge<VertexType>>
addVertex
in class AbstractGraph<VertexType,EdgeType extends UndirectedHyperEdge<VertexType>>
public boolean removeVertex(VertexType vertex)
removeVertex
in interface Graph<VertexType,EdgeType extends UndirectedHyperEdge<VertexType>>
removeVertex
in class AbstractGraph<VertexType,EdgeType extends UndirectedHyperEdge<VertexType>>
public void clear()
clear
in interface Graph<VertexType,EdgeType extends UndirectedHyperEdge<VertexType>>
clear
in class AbstractGraph<VertexType,EdgeType extends UndirectedHyperEdge<VertexType>>
public boolean addEdge(EdgeType edge)
addEdge
in interface Graph<VertexType,EdgeType extends UndirectedHyperEdge<VertexType>>
addEdge
in class AbstractGraph<VertexType,EdgeType extends UndirectedHyperEdge<VertexType>>
public boolean removeEdge(EdgeType edge)
removeEdge
in interface Graph<VertexType,EdgeType extends UndirectedHyperEdge<VertexType>>
removeEdge
in class AbstractGraph<VertexType,EdgeType extends UndirectedHyperEdge<VertexType>>
public java.util.Set<EdgeType> findEdgesOf(VertexType vertex)
findEdgesOf
in interface Graph<VertexType,EdgeType extends UndirectedHyperEdge<VertexType>>
findEdgesOf
in class AbstractGraph<VertexType,EdgeType extends UndirectedHyperEdge<VertexType>>
public java.util.Set<EdgeType> findEdgesOf(java.util.Set<VertexType> vertices)
findEdgesOf
in interface Graph<VertexType,EdgeType extends UndirectedHyperEdge<VertexType>>
findEdgesOf
in class AbstractGraph<VertexType,EdgeType extends UndirectedHyperEdge<VertexType>>
public java.util.Set<VertexType> findChildrenOf(VertexType vertex)
findChildrenOf
in interface Graph<VertexType,EdgeType extends UndirectedHyperEdge<VertexType>>
public java.lang.String toString()
toString
in class java.lang.Object