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

Method add_op

python/graphscope/framework/dag.py:54–61  ·  view source on GitHub ↗
(self, op)

Source from the content-addressed store, hash-verified

52 return op.key in self._ops_by_key
53
54 def add_op(self, op):
55 if not isinstance(op, Operation):
56 raise TypeError("op must be an Operation: {0}".format(op))
57 if not op.evaluated and op.key in self._ops_by_key:
58 raise ValueError("op named {0} already exist in dag".format(op.key))
59 self._ops_by_key[op.key] = op
60 self._ops_seq_by_key[op.key] = self._seq
61 self._seq += 1
62
63 def as_dag_def(self):
64 """Return :class:`Dag` as a :class:`DagDef` proto buffer."""

Callers 15

__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
evalMethod · 0.80
__init__Method · 0.80
add_verticesMethod · 0.80
add_edgesMethod · 0.80
__init__Method · 0.80
save_toMethod · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected