from redisgraph import Graph graph = Graph("mygraph", host="localhost", port=6379) graph.delete()
from redisgraph import Graph graph = Graph("mygraph", host="localhost", port=6379) result = graph.query("CALL db.schema()") for label in result.result_set[0][1]: print("Label:", label) for index in result.result_set[0][2]: print("Index:", index)Package library: redisgraph.