()
| 178 | |
| 179 | |
| 180 | def test_minimum_networkx(): |
| 181 | import graphscope.nx as nx |
| 182 | |
| 183 | s = graphscope.session(cluster_type="hosts", num_workers=2) |
| 184 | s.as_default() |
| 185 | # case-1 run app |
| 186 | G = nx.path_graph(10) |
| 187 | nx.builtin.pagerank(G) |
| 188 | # case-2 transfer nx graph to gs graph |
| 189 | nx_g = nx.Graph(dist=True) |
| 190 | nx_g.add_nodes_from(range(100), type="node") |
| 191 | gs_g = s.g(nx_g) |
| 192 | s.close() |
| 193 | |
| 194 | |
| 195 | def test_multiple_session(ogbn_small_script): |
nothing calls this directly
no test coverage detected