Search in sources :

Example 1 with UndirectedSparseVertex

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;
}
Also used : UndirectedSparseVertex(edu.uci.ics.jung.graph.impl.UndirectedSparseVertex) Vertex(edu.uci.ics.jung.graph.Vertex) UndirectedSparseVertex(edu.uci.ics.jung.graph.impl.UndirectedSparseVertex)

Aggregations

Vertex (edu.uci.ics.jung.graph.Vertex)1 UndirectedSparseVertex (edu.uci.ics.jung.graph.impl.UndirectedSparseVertex)1