检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
参数类型 描述 X-Auth-Token 是 String 用户Token。 用于获取操作API的权限。获取方法请参见获取Token接口,响应消息头中X-Subject-Token的值即为Token。 响应参数 状态码: 400 无 状态码: 200 表3 响应Body参数 参数
创建图 创建图的方式 自定义创建图 行业图模板创建图 创建动态图 启动图 停止图 访问图 增量导入数据
参数类型 描述 X-Auth-Token 是 String 用户Token。 用于获取操作API的权限。获取方法请参见获取Token接口,响应消息头中X-Subject-Token的值即为Token。 响应参数 状态码: 200 表3 响应Body参数 参数 参数类型 描述 errorMessage
图操作 代码样例文件路径 代码样例文件名 对应的API com.huawei.ges.graph.sdk.v1.examples.graphoperation ImportGraphSample 导入图 ExportGraphSample 导出图 ClearGraphSample
自定义操作 代码样例文件路径 代码样例文件名 对应的API com.huawei.ges.graph.sdk.v1.examples.customoperation ExecuteCustomActionSample 执行自定义操作 父主题: 内存版样例
图操作 代码样例文件路径 样例方法名 对应的API com.huawei.ges.graph.sdk.v1.examples.persistence testImportGraphPersistence 导入图 testClearGraphPersistence 清空图 父主题:
图操作 代码样例文件路径 样例方法名 对应的API com.huawei.ges.graph.sdk.v1.examples.persistence testImportGraphPersistence 导入图 testClearGraphPersistence 清空图 父主题:
算法 代码样例文件路径 样例方法名 对应的API com.huawei.ges.graph.sdk.v1.examples.persistence testShortestPath 最短路径算法 testShortestPathOfVertexSets 点集最短路径算法 test
算法 代码样例文件路径 样例方法名 对应的API com.huawei.ges.graph.sdk.v1.examples.persistence testShortestPath 最短路径算法 testShortestPathOfVertexSets 点集最短路径算法 test
modularity Double 模块度。 community_num Integer 社团数量。 community List 各节点对应的社团(community),格式: [{vertexId:communityId},...] 其中, vertexId: string类型 communityId:
Filtered-query 代码样例文件路径 代码样例文件名 对应的API com.huawei.ges.graph.sdk.v1.examples.customoperation FilteredQuerySample Filtered-query FilteredQueryV2Sample
huaweicloudsdkcore.http.http_config import HttpConfig # 认证用的ak和sk硬编码到代码中或者明文存储都有很大的安全风险,建议在配置文件或者环境变量中密文存放,使用时解密,确保安全 # 本示例以ak和sk保存在环境变量中来实现身
客户端初始化 根据不同的认证方式,客户端初始化有三种方式,可根据需要选择其中一种。 客户端初始化时可根据需要进行HTTP配置,具体可参考。 认证方式 客户端连接参数 父主题: Python SDK
Filtered-query 代码样例文件路径 代码样例文件名 对应的API com.huawei.ges.graph.sdk.v1.examples.filteredquery FilteredQuerySample Filtered-query FilteredQueryV2Sample
Integer 1~2000。 1000 表2 reponse_data参数说明 参数 类型 说明 community List 各节点对应的社团(community),格式: [{vertexId:communityId},...] 其中, vertexId: string类型 communityId:
标准csv格式,ID之间以英文逗号分隔,例如:["Alice","Nana"]。 个数不大于100000。 - directed 否 是否考虑边的方向 Boolean true或false false 表2 response_data参数说明 参数 类型 说明 path List 最短路径,格式:
自定义图分析算法编程示例 自定义SSSP算法 # 导入必要的包 from hyg.analytics.graph import load_base_graph from hyg.analytics.model import pregel_types, PregelModel #
Shortest Paths) 带过滤全最短路径(Filtered All Shortest Paths) TopicRank算法 带过滤的n_paths算法(filtered_n_paths) 时序路径分析(Temporal Paths)
0/{project_id}/graphs/{graph_name}/vertices/46/labels/movie SERVER_URL:图的访问地址,取值请参考业务面API使用限制。 响应示例 状态码: 200 成功响应示例 Http Status Code: 200 { } 状态码:
0) 点集最短路(shortest_path_of_vertex_sets)(2.1.5) 关联路径(n_paths)(1.1.2) 带过滤的n_paths算法(filtered_n_paths)(2.2.22) 带过滤全对最短路径(filtered_all_pairs_shortest_paths)(2