Search in sources :

Example 1 with BaseApiTest

use of com.baidu.hugegraph.api.BaseApiTest in project incubator-hugegraph-toolchain by apache.

the class CustomizedPathsApiTest method removeEdgesWithWeights.

private static void removeEdgesWithWeights() {
    List<Long> elTaskIds = new ArrayList<>();
    EdgeLabel knows1 = schema().getEdgeLabel("knows1");
    EdgeLabel created1 = schema().getEdgeLabel("created1");
    ImmutableList.of(knows1, created1).forEach(edgeLabel -> {
        elTaskIds.add(edgeLabelAPI.delete(edgeLabel.name()));
    });
    elTaskIds.forEach(BaseApiTest::waitUntilTaskCompleted);
}
Also used : ArrayList(java.util.ArrayList) EdgeLabel(com.baidu.hugegraph.structure.schema.EdgeLabel) BaseApiTest(com.baidu.hugegraph.api.BaseApiTest)

Aggregations

BaseApiTest (com.baidu.hugegraph.api.BaseApiTest)1 EdgeLabel (com.baidu.hugegraph.structure.schema.EdgeLabel)1 ArrayList (java.util.ArrayList)1