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

Function create_graph

python/graphscope/gsctl/impl/graph.py:107–114  ·  view source on GitHub ↗
(graph: dict)

Source from the content-addressed store, hash-verified

105
106
107def create_graph(graph: dict) -> str:
108 context = get_current_context()
109 with graphscope.flex.rest.ApiClient(
110 graphscope.flex.rest.Configuration(context.coordinator_endpoint)
111 ) as api_client:
112 api_instance = graphscope.flex.rest.GraphApi(api_client)
113 response = api_instance.create_graph(CreateGraphRequest.from_dict(graph))
114 return response.graph_id
115
116
117def delete_graph_by_id(graph_identifier: str) -> str:

Callers 8

graphFunction · 0.90
test_graphMethod · 0.90
test_bulk_loadingMethod · 0.90
test_cypher_procedureMethod · 0.90
test_cpp_procedureMethod · 0.90
test_serviceMethod · 0.90
test_suit_caseMethod · 0.90

Calls 4

get_current_contextFunction · 0.90
ConfigurationMethod · 0.45
create_graphMethod · 0.45
from_dictMethod · 0.45

Tested by 7

test_graphMethod · 0.72
test_bulk_loadingMethod · 0.72
test_cypher_procedureMethod · 0.72
test_cpp_procedureMethod · 0.72
test_serviceMethod · 0.72
test_suit_caseMethod · 0.72