查看图集列表
获取图集列表,包含点、边数量等信息
graphs, _ := client.ListGraph(nil)
创建图集
graph := &structs.Graph{
Name: "new_graph",
Description: "my new graph",
}
resp, err := client.CreateGraph(graph, nil)
log.Println(resp.Status.Code, err)
删除图集
resp, err := client.DropGraph("old_graph", nil)
log.Println(resp.Status.Code, err)
检查图集是否存在
isExist, err := client.HasGraph("exist_graph", nil)
log.Println(isExist, err)