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

Method edges

pattern/graph/__init__.py:121–126  ·  view source on GitHub ↗

Yields a list of edges from/to the node.

(self)

Source from the content-addressed store, hash-verified

119
120 @property
121 def edges(self):
122 """ Yields a list of edges from/to the node.
123 """
124 return self.graph is not None \
125 and [e for e in self.graph.edges if self.id in (e.node1.id, e.node2.id)] \
126 or []
127
128 @property
129 def weight(self):

Callers 1

test_edgesMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_edgesMethod · 0.64