private void createIndices(DendriteGraph graph, String algorithm) {
TitanTransaction tx = graph.newTransaction();
if (algorithm.equals("centrality")) {
if (tx.getType("snap_degree") == null) {
tx.makeKey("snap_degree")
.dataType(FullDouble.class)
.indexed(DendriteGraph.INDEX_NAME, Vertex.class)
.make();
}
if (tx.getType("snap_closeness") == null) {