How to make the graph faster?

Thank you. If I always return “Process” graph loaded in 2 seconds but if I return different names graph is loaded in 10 seconds. It is sad to hear that you cannot reproduce this behavior as it means there is no way for me to have different graph directions which will load in 2 seconds.



But in any case, 8-10 seconds of graph loading is ok if I show some progress to the users. As I understand layout can be done only in UI thread so it blocks an application UI. Is there any way I can show that something is working, some callback maybe, from which I can update progress bar, or something else?