MCPcopy Create free account
hub / github.com/alibaba/GraphScope / drop_all

Method drop_all

python/graphscope/framework/graph_schema.py:640–650  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

638 raise ValueError(f"Label {label} not found.")
639
640 def drop_all(self):
641 for item in self._edge_labels:
642 for rel in item.relations:
643 self._edge_labels_to_drop.append(
644 EdgeLabel(item.label)
645 .source(rel.source)
646 .destination(rel.destination)
647 )
648 self._edge_labels_to_drop.append(EdgeLabel(item.label))
649 for item in self._vertex_labels:
650 self._vertex_labels_to_drop.append(VertexLabel(item.label))
651
652 def _prepare_batch_rpc(self):
653 requests = ddl_service_pb2.BatchSubmitRequest()

Callers

nothing calls this directly

Calls 5

destinationMethod · 0.80
EdgeLabelClass · 0.70
VertexLabelClass · 0.70
appendMethod · 0.65
sourceMethod · 0.45

Tested by

no test coverage detected