N - The type of Node stored in this Edgepublic class DefaultDirectionalHyperEdge<N> extends java.lang.Object implements DirectionalHyperEdge<N>
SINK, SOURCE, UNCONNECTED| Constructor and Description | 
|---|
| DefaultDirectionalHyperEdge(java.util.Collection<N> sourceNode,
                           java.util.Collection<N> sinkNode)Constructs a DefaultDirectionalHyperEdge with the given Nodes as source
 Nodes and Sink Nodes. | 
| Modifier and Type | Method and Description | 
|---|---|
| DefaultDirectionalHyperEdge<N> | createReplacementEdge(java.util.Collection<N> newSourceNodes,
                     java.util.Collection<N> newSinkNodes)Creates a replacement DefaultDirectionalHyperEdge with the given Nodes as
 source Nodes and Sink Nodes. | 
| int | getAdjacentNodeCount()Returns a count of the number of adjacent (connected) Nodes to this
 DefaultDirectionalHyperEdge. | 
| java.util.List<N> | getAdjacentNodes()Returns a List of the Nodes which are adjacent (connected) to this
 DefaultDirectionalHyperEdge. | 
| N | getNodeAt(int index)Returns the Node at the given index. | 
| int | getNodeInterfaceType(N node)Returns a bitmask indicating the interface type of the given Node with
 respect to this DefaultDirectionalHyperEdge. | 
| java.util.List<N> | getSinkNodes()Returns a List of the sink Nodes of this DefaultDirectionalHyperEdge. | 
| java.util.List<N> | getSourceNodes()Returns a List of the source Nodes of this DefaultDirectionalHyperEdge. | 
| boolean | isAdjacentNode(N node)Returns true if the given Node is adjacent (connected) to this
 DefaultDirectionalHyperEdge. | 
public DefaultDirectionalHyperEdge(java.util.Collection<N> sourceNode, java.util.Collection<N> sinkNode)
sourceNode - The Collection of source Nodes for this
            DefaultDirectionalHyperEdge.sinkNode - The Collection of source Nodes for this
            DefaultDirectionalHyperEdge.public N getNodeAt(int index)
getNodeAt in interface Edge<N>index - The index of the Node to be returnedEdge.getNodeAt(int)public java.util.List<N> getAdjacentNodes()
getAdjacentNodes in interface Edge<N>Edge.getAdjacentNodes()public boolean isAdjacentNode(N node)
isAdjacentNode in interface Edge<N>node - The Node to be testedEdge.isAdjacentNode(java.lang.Object)public int getAdjacentNodeCount()
getAdjacentNodeCount in interface Edge<N>Edge.getAdjacentNodeCount()public int getNodeInterfaceType(N node)
getNodeInterfaceType in interface DirectionalEdge<N>node - The node for which the interface type should be returnedDirectionalEdge.getNodeInterfaceType(java.lang.Object)public java.util.List<N> getSinkNodes()
getSinkNodes in interface DirectionalEdge<N>DirectionalEdge.getSinkNodes()public java.util.List<N> getSourceNodes()
getSourceNodes in interface DirectionalEdge<N>DirectionalEdge.getSourceNodes()public DefaultDirectionalHyperEdge<N> createReplacementEdge(java.util.Collection<N> newSourceNodes, java.util.Collection<N> newSinkNodes)
createReplacementEdge in interface DirectionalHyperEdge<N>newSourceNodes - The Collection indicating the source Nodes of the replacement
            DirectionalHyperEdgenewSinkNodes - The Collection indicating the sink Nodes of the replacement
            DirectionalHyperEdgeDirectionalHyperEdge.createReplacementEdge(java.util.Collection,
      java.util.Collection)