MCPcopy Create free account
hub / github.com/alibaba/GraphScope / test_minimum_networkx

Function test_minimum_networkx

python/graphscope/tests/minitest/test_min.py:180–192  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

178
179
180def 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
195def test_multiple_session(ogbn_small_script):

Callers

nothing calls this directly

Calls 5

add_nodes_fromMethod · 0.95
as_defaultMethod · 0.80
closeMethod · 0.65
sessionMethod · 0.45
gMethod · 0.45

Tested by

no test coverage detected