|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GraphHandler
An interface used to make modifications on the internal indexes (012, 120 and 201) of a graph.
Method Summary | |
---|---|
Triple |
createTriple(Long... nodes)
Creates the globalized nodes based on the internal representation of the nodes. |
Iterator<Map.Entry<Long,Map<Long,Set<Long>>>> |
getEntries()
Returns an iterator over an internal representation of the graph in the fixed order based on the underlying index. |
Map<Long,Set<Long>> |
getSubIndex(Long first)
Returns the map of long to set of longs for the given entry of the index. |
void |
reconstructIndices(LongIndex firstIndex,
LongIndex secondIndex,
LongIndex thirdIndex)
As 012, 120 and 201 are symmetrical this can be used to reconstruct either two from any one index. |
void |
remove(Long... nodes)
Removes a triple from the other indexes of the graph. |
boolean |
removeSubIndex(Long first)
Removes the given entry of long to set of longs with the given entry. |
Method Detail |
---|
void reconstructIndices(LongIndex firstIndex, LongIndex secondIndex, LongIndex thirdIndex) throws GraphException
firstIndex
- the first index.secondIndex
- the second index.thirdIndex
- the third index.
GraphException
- if the adds fail.Map<Long,Set<Long>> getSubIndex(Long first)
first
- the entry set to find.
boolean removeSubIndex(Long first)
first
- the entry set to remove.
Iterator<Map.Entry<Long,Map<Long,Set<Long>>>> getEntries()
Triple createTriple(Long... nodes)
nodes
- an array of three triple values to create.
void remove(Long... nodes) throws GraphException
nodes
- the array of nodes to remove.
GraphException
- if the nodes do not exist.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |