I’m using the arcgis Python API to build, populate, and edit a knowledge graph. I want to be able to check for the existence of a graph prior to making one. My current approach involves a try/except where I build the graph create statement and try to make one. If there’s an exception raised then I just build the url and connect.
while this works, I wonder if there’s a more elegant solution to check for the name of that graph? Would this involve searching for all Portal graph items and then looking in that list? I suppose that would get fairly lengthy and could be expensive in itself.
thanks for any advice.