MCPcopy Create free account
hub / github.com/easy-graph/Easy-Graph / has_edge

Method has_edge

easygraph/classes/graph.py:1270–1274  ·  view source on GitHub ↗
(self, u, v)

Source from the content-addressed store, hash-verified

1268 return node in self._node
1269
1270 def has_edge(self, u, v):
1271 try:
1272 return v in self._adj[u]
1273 except KeyError:
1274 return False
1275
1276 def number_of_nodes(self):
1277 """Returns the number of nodes.

Callers 13

erdos_renyi_MFunction · 0.95
WS_RandomFunction · 0.95
_commonUpdateFunction · 0.95
test_has_edgeMethod · 0.45
_get_alias_edgeFunction · 0.45
ego_betweennessFunction · 0.45
add_edgeMethod · 0.45
parse_gml_linesFunction · 0.45
add_edgeMethod · 0.45
test_yfiles_extensionMethod · 0.45
testMethod · 0.45

Calls

no outgoing calls

Tested by 4

test_has_edgeMethod · 0.36
test_yfiles_extensionMethod · 0.36
testMethod · 0.36
test_graphMethod · 0.36