|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
N
- type of the data contained in a nodepublic interface IndexedGraph<N extends GObject>
This interface represents a graph that allows programmers to refer to a node's edges by a particular index. An indexed graph is always directed, and does not contain any information on the edges.
Method Summary | |
---|---|
GNode<N> |
getNeighbor(GNode<N> src,
int index)
Get a particular neighbor of a given node All the Galois runtime actions (e.g., conflict detection) will be performed when the method is executed. |
GNode<N> |
getNeighbor(GNode<N> src,
int index,
byte flags)
Get a particular neighbor of a given node |
boolean |
removeNeighbor(GNode<N> src,
int index)
Remove a particular neighbor of a given node. |
boolean |
removeNeighbor(GNode<N> src,
int index,
byte flags)
Remove a particular neighbor of a given node. |
void |
setNeighbor(GNode<N> src,
GNode<N> dst,
int index)
Set a particular neighbor of a given node. |
void |
setNeighbor(GNode<N> src,
GNode<N> dst,
int index,
byte flags)
Set a particular neighbor of a given node. |
Methods inherited from interface galois.objects.graph.Graph |
---|
add, add, addNeighbor, addNeighbor, contains, contains, createNode, createNode, hasNeighbor, hasNeighbor, inNeighborsSize, inNeighborsSize, isDirected, mapInNeighbors, mapInNeighbors, outNeighborsSize, outNeighborsSize, remove, remove, removeNeighbor, removeNeighbor, size, size |
Methods inherited from interface galois.objects.Mappable |
---|
map, map, map, map, map, map, mapInternal, mapInternal, mapInternal, mapInternalDone |
Methods inherited from interface galois.objects.GObject |
---|
access |
Method Detail |
---|
void setNeighbor(GNode<N> src, GNode<N> dst, int index)
src
- the node whose neighbor to setdst
- the new neighborindex
- the particular neighbor to setvoid setNeighbor(GNode<N> src, GNode<N> dst, int index, byte flags)
src
- the node whose neighbor to setdst
- the new neighborflags
- Galois runtime actions (e.g., conflict detection) that need to be executed
upon invocation of this method. See MethodFlag
index
- the particular neighbor to setGNode<N> getNeighbor(GNode<N> src, int index)
src
- the node whose neighbor to getindex
- the particular neighbor to get
GNode<N> getNeighbor(GNode<N> src, int index, byte flags)
src
- the node whose neighbor to getindex
- the particular neighbor to getflags
- Galois runtime actions (e.g., conflict detection) that need to be executed
upon invocation of this method. See MethodFlag
boolean removeNeighbor(GNode<N> src, int index)
src
- the node whose neighbor to removeindex
- the neighbor to remove
boolean removeNeighbor(GNode<N> src, int index, byte flags)
src
- the node whose neighbor to removeindex
- the neighbor to removeflags
- Galois runtime actions (e.g., conflict detection) that need to be executed
upon invocation of this method. See MethodFlag
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |