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

Function test_nbr

easygraph/classes/tests/test_hypergraph.py:334–338  ·  view source on GitHub ↗
(g1, g2)

Source from the content-addressed store, hash-verified

332
333
334def test_nbr(g1, g2):
335 assert g1.nbr_v(0) == [0, 1, 2, 5]
336 assert g1.nbr_e(1) == [0, 1]
337 assert g2.nbr_v(2) == [0, 1]
338 assert g2.nbr_e(4) == [3]
339
340
341def test_nbr_group(g1):

Callers

nothing calls this directly

Calls 2

nbr_eMethod · 0.80
nbr_vMethod · 0.45

Tested by

no test coverage detected