use of edu.uci.ics.jung.graph.impl.UndirectedSparseVertex in project tdq-studio-se by Talend.
the class GraphBuilder method newVertex.
/**
* DOC scorreia Comment method "newVertex".
*
* @param key2Vertex
* @param columnIndex
* @param value
* @param multikey
* @return
*/
private Vertex newVertex(Map<MultipleKey, Vertex> key2Vertex, int columnIndex, final Object value, MultipleKey multikey) {
Vertex myVertex;
myVertex = new UndirectedSparseVertex();
myVertex.addUserDatum(GraphBuilder.COLUMN_IDX_KEY, columnIndex, UserData.CLONE);
myVertex.addUserDatum(GraphBuilder.V_LABEL_KEY, String.valueOf(value), UserData.SHARED);
key2Vertex.put(multikey, myVertex);
graph.addVertex(myVertex);
return myVertex;
}
Aggregations