|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
N
- The node class to be used. It must implement INode
.E
- The edge class to be used. It must implement IEdge
.public interface IDirectedEdgeSet<N extends IDirectedNode<N,? extends IDirectedEdge<N,?>>,E extends IDirectedEdge<N,E>>
A set designed to provide convenient access to directed edges. This interface will typically be implemented and used
as a data structure with the graph library classes themselves rather than by clients of the library. The
set does not ensure that the edges all belong to the same graph (although this is recommended and the client should ensure this),
it only requires that the edge indexes are unique, based on equals()
and their comparitor.
Method Summary | |
---|---|
boolean |
contains(N outNode,
N inNode)
Does the edge set contain at least one edge with these nodes. |
java.util.SortedSet<E> |
get(N inNode,
N outNode)
Get the edges that match the given node connectivity. |
Methods inherited from interface uk.ed.inf.graph.util.IEdgeSet |
---|
contains, get, getEdgesWith, hasEdgesWith |
Methods inherited from interface java.util.Set |
---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Method Detail |
---|
boolean contains(N outNode, N inNode)
contains
in interface IEdgeSet<N extends IDirectedNode<N,? extends IDirectedEdge<N,?>>,E extends IDirectedEdge<N,E>>
outNode
- The node from which the edge is leading out from.inNode
- The node from which the edge is leading into.
java.util.SortedSet<E> get(N inNode, N outNode)
get
in interface IEdgeSet<N extends IDirectedNode<N,? extends IDirectedEdge<N,?>>,E extends IDirectedEdge<N,E>>
outNode
- The node that the edge is leading out from. Cannot be null.inNode
- The node that the edge is leading into. Cannot be null.
java.lang.NullPointerException
- if the parameters are null.
java.lang.IllegalArgumentException
- if contains(N outNode, N inNode) == false
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |