public class DirectedHyperGraphHashSet<VertexType,EdgeType extends DirectedHyperEdge<VertexType>> extends UndirectedHyperGraphHashSet<VertexType,EdgeType> implements DirectedHyperGraph<VertexType,EdgeType>
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<VertexType,java.util.Set<EdgeType>> |
Vs2E |
protected java.util.Map<VertexType,java.util.Set<EdgeType>> |
Vt2E |
V2E
E, V
Constructor and Description |
---|
DirectedHyperGraphHashSet() |
Modifier and Type | Method and Description |
---|---|
boolean |
addEdge(EdgeType edge) |
boolean |
addEdge(java.util.Set<VertexType> sourceVertices,
java.util.Set<VertexType> targetVertices) |
boolean |
addVertex(VertexType vertex) |
void |
clear() |
java.util.Set<VertexType> |
findChildrenOf(VertexType vertex) |
java.util.Set<EdgeType> |
findEdgesWithSourceVertex(VertexType vertex) |
java.util.Set<EdgeType> |
findEdgesWithSourceVertices(java.util.Set<VertexType> vertices) |
java.util.Set<EdgeType> |
findEdgesWithTargetVertex(VertexType vertex) |
java.util.Set<EdgeType> |
findEdgesWithTargetVertices(java.util.Set<VertexType> vertices) |
java.util.Set<VertexType> |
findNeighborsOf(VertexType vertex) |
boolean |
removeEdge(EdgeType edge) |
boolean |
removeVertex(VertexType vertex) |
findEdgesOf, findEdgesOf, toString
addEdges, addVertices, getEdges, getVertices, removeEdges, removeVertices
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addEdges, addVertices, findEdgesOf, findEdgesOf, getEdges, getVertices, removeEdges, removeVertices
protected java.util.Map<VertexType,java.util.Set<EdgeType extends DirectedHyperEdge<VertexType>>> Vs2E
protected java.util.Map<VertexType,java.util.Set<EdgeType extends DirectedHyperEdge<VertexType>>> Vt2E
public boolean addEdge(java.util.Set<VertexType> sourceVertices, java.util.Set<VertexType> targetVertices)
addEdge
in interface DirectedHyperGraph<VertexType,EdgeType extends DirectedHyperEdge<VertexType>>
public boolean addVertex(VertexType vertex)
addVertex
in interface Graph<VertexType,EdgeType extends DirectedHyperEdge<VertexType>>
addVertex
in class UndirectedHyperGraphHashSet<VertexType,EdgeType extends DirectedHyperEdge<VertexType>>
public boolean removeVertex(VertexType vertex)
removeVertex
in interface Graph<VertexType,EdgeType extends DirectedHyperEdge<VertexType>>
removeVertex
in class UndirectedHyperGraphHashSet<VertexType,EdgeType extends DirectedHyperEdge<VertexType>>
public void clear()
clear
in interface Graph<VertexType,EdgeType extends DirectedHyperEdge<VertexType>>
clear
in class UndirectedHyperGraphHashSet<VertexType,EdgeType extends DirectedHyperEdge<VertexType>>
public boolean addEdge(EdgeType edge)
addEdge
in interface Graph<VertexType,EdgeType extends DirectedHyperEdge<VertexType>>
addEdge
in class UndirectedHyperGraphHashSet<VertexType,EdgeType extends DirectedHyperEdge<VertexType>>
public boolean removeEdge(EdgeType edge)
removeEdge
in interface Graph<VertexType,EdgeType extends DirectedHyperEdge<VertexType>>
removeEdge
in class UndirectedHyperGraphHashSet<VertexType,EdgeType extends DirectedHyperEdge<VertexType>>
public java.util.Set<VertexType> findNeighborsOf(VertexType vertex)
findNeighborsOf
in interface Graph<VertexType,EdgeType extends DirectedHyperEdge<VertexType>>
findNeighborsOf
in class AbstractGraph<VertexType,EdgeType extends DirectedHyperEdge<VertexType>>
public java.util.Set<VertexType> findChildrenOf(VertexType vertex)
findChildrenOf
in interface Graph<VertexType,EdgeType extends DirectedHyperEdge<VertexType>>
findChildrenOf
in class UndirectedHyperGraphHashSet<VertexType,EdgeType extends DirectedHyperEdge<VertexType>>
public java.util.Set<EdgeType> findEdgesWithSourceVertex(VertexType vertex)
findEdgesWithSourceVertex
in interface DirectedHyperGraph<VertexType,EdgeType extends DirectedHyperEdge<VertexType>>
public java.util.Set<EdgeType> findEdgesWithSourceVertices(java.util.Set<VertexType> vertices)
findEdgesWithSourceVertices
in interface DirectedHyperGraph<VertexType,EdgeType extends DirectedHyperEdge<VertexType>>
public java.util.Set<EdgeType> findEdgesWithTargetVertex(VertexType vertex)
findEdgesWithTargetVertex
in interface DirectedHyperGraph<VertexType,EdgeType extends DirectedHyperEdge<VertexType>>
public java.util.Set<EdgeType> findEdgesWithTargetVertices(java.util.Set<VertexType> vertices)
findEdgesWithTargetVertices
in interface DirectedHyperGraph<VertexType,EdgeType extends DirectedHyperEdge<VertexType>>