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

Function cycle_graph

python/graphscope/nx/generators/classic.py:176–181  ·  view source on GitHub ↗
(n, create_using=None)

Source from the content-addressed store, hash-verified

174@nodes_or_number(0)
175@patch_docstring(nxa.cycle_graph)
176def cycle_graph(n, create_using=None):
177 n_orig, nodes = n
178 G = empty_graph(nodes, create_using)
179 G.add_edges_from(pairwise(nodes))
180 G.add_edge(nodes[-1], nodes[0])
181 return G
182
183
184@patch_docstring(nxa.dorogovtsev_goltsev_mendes_graph)

Callers 2

LCF_graphFunction · 0.90
frucht_graphFunction · 0.90

Calls 3

empty_graphFunction · 0.85
add_edges_fromMethod · 0.80
add_edgeMethod · 0.45

Tested by

no test coverage detected