MCPcopy Index your code
hub / github.com/clips/pattern / add_edge

Method add_edge

pattern/graph/commonsense.py:144–149  ·  view source on GitHub ↗

Returns a Relation between two concepts (Edge subclass).

(self, id1, id2, *args, **kwargs)

Source from the content-addressed store, hash-verified

142 return Graph.add_node(self, id, *args, **kwargs)
143
144 def add_edge(self, id1, id2, *args, **kwargs):
145 """ Returns a Relation between two concepts (Edge subclass).
146 """
147 self._properties = None
148 kwargs.setdefault("base", Relation)
149 return Graph.add_edge(self, id1, id2, *args, **kwargs)
150
151 def remove(self, x):
152 self._properties = None

Callers 1

__init__Method · 0.95

Calls 1

setdefaultMethod · 0.45

Tested by

no test coverage detected