Interoperability between Python and C by calling igraph_community_walktrap function

If I understand your question, you are saying that the Python function Graph.community_walktrap() takes too much memory, therefore you are looking to call the C function igraph_community_walktrap().

However, Graph.community_walktrap() is just a wrapper to igraph_community_walktrap(), so unless there is a memory issue with the VertexDendrogram object, there shouldn’t be a significant difference.