|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface GraphAdapter
Used as an adapter between an already existing graph model and this collections library.
The graph is supposed to support two things: 1. Ability to determine a specific node in the graph based on an index, 2. Ability to retrieve list of neighbours of a node. The graph doesn't have to be bi-directional, and the graph adapter doesn't have to be implemented as such.
| Method Summary | |
|---|---|
java.lang.Object |
getNode(int index)
Retrieves a node at a certain index. |
java.lang.Iterable<java.lang.Object> |
getNodeNeighbours(java.lang.Object node)
Retreves the list of a node's neighbours. |
| Method Detail |
|---|
java.lang.Object getNode(int index)
index - The index of the node.
java.lang.Iterable<java.lang.Object> getNodeNeighbours(java.lang.Object node)
node - The node to retrieve its neighbours.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||