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

Method setup_class

easygraph/readwrite/tests/test_ucinet.py:19–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

17class TestUcinet:
18 @classmethod
19 def setup_class(self):
20 self.G = eg.MultiDiGraph()
21 self.G.add_nodes_from(["a", "b", "c", "d", "e"])
22 self.G.add_edges_from(
23 [
24 ("a", "b"),
25 ("a", "c"),
26 ("a", "d"),
27 ("a", "e"),
28 ("b", "a"),
29 ("b", "c"),
30 ("b", "d"),
31 ("c", "a"),
32 ("c", "b"),
33 ("d", "a"),
34 ("d", "b"),
35 ("e", "a"),
36 ]
37 )
38 try:
39 pass
40 except ImportError:
41 raise SkipTest("NumPy not available.")
42
43 def test_generate_ucinet(self):
44 Gout = eg.generate_ucinet(self.G)

Callers

nothing calls this directly

Calls 2

add_nodes_fromMethod · 0.45
add_edges_fromMethod · 0.45

Tested by

no test coverage detected