|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectscratch.danyel.lazy.LazySparseVertexFactory
public abstract class LazySparseVertexFactory
To override this class,
Field Summary | |
---|---|
protected HashMap |
idPairToEdge
|
protected HashMap |
idToVertex
|
Constructor Summary | |
---|---|
LazySparseVertexFactory(Graph g)
|
Method Summary | |
---|---|
abstract void |
annotateVertex(LazySparseVertex vertex)
Ok, here'a a Vertex. |
Edge |
getEdge(Object id1,
Object id2)
Returns an edge running between these two vertices. |
protected Edge |
getLazyEdge(Vertex v1,
Vertex v2)
Returns the (unqiue) edge connected vertices 1 and 2. |
protected LazySparseVertex |
getLazySparseVertex(Object identifier)
Creates a new LazySparseVertex tied to this identifier. |
abstract Object[] |
getNeighborsIds(Object o)
Returns an array of IDs of successors. |
Vertex |
getVertex(Object identifier)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected HashMap idToVertex
protected HashMap idPairToEdge
Constructor Detail |
---|
public LazySparseVertexFactory(Graph g)
Method Detail |
---|
public Vertex getVertex(Object identifier)
protected LazySparseVertex getLazySparseVertex(Object identifier)
public Edge getEdge(Object id1, Object id2)
id1
- id2
-
protected Edge getLazyEdge(Vertex v1, Vertex v2)
v1
- v2
-
public abstract void annotateVertex(LazySparseVertex vertex)
vertex
- public abstract Object[] getNeighborsIds(Object o)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |