Vertex coloVertex = addVertex(colo, RelationshipType.COLO);
addEdge(fromVertex, coloVertex, RelationshipLabel.CLUSTER_COLO.getName());
}
public void addRelationToCluster(Vertex fromVertex, String clusterName, RelationshipLabel edgeLabel) {
Vertex clusterVertex = findVertex(clusterName, RelationshipType.CLUSTER_ENTITY);
if (clusterVertex == null) { // cluster must exist before adding other entities
// todo - throw new IllegalStateException("Cluster entity vertex must exist: " + clusterName);
LOG.error("Illegal State: Cluster entity vertex must exist for " + clusterName);
return;
}