Graph thread safety

Good morning,

I'm considering to use graph-tool as a part of a python web-service
providing graph analysis features. Graph-tool performance looks really
promising, but I'm not sure if it fits my case. I would like to load graph
into the memory and share/read it between multiple threads/processes (to
handle many requests in parallel to the same graph). Is Graph thread safe?
For me it seems that it's not, but I would like to confirm it.

Best Regards,

Damian

Non-modifying operations to Graph are thread-safe.

Best,
Tiago

how do you share/read graph object between multiple threads/processes ?

The same way you do with anything else.

Remember, however, that relying on the Python API to do multithreading is
largely hampered by Python's GIL, and multiprocessing can be costly.