I am using python language on a Linux server with 128 GB memory. I am doing graph clustering using Markov algorithm. The details of the process are as follows:
Graphtype = nx.Graph()
G = nx.from_pandas_edgelist(df, 'source','target', edge_attr='weight', create_using=Graphtype)
Graph details:
Name:
Type: Graph
Number of nodes: 4533801
Number of edges: 10548751
Average degree: 4.6534
Is the graph connected?
nx.is_connected(G)
False
Number of connected components
print(nx.number_connected_components(G))
7254
Markov Clustering
import markov_clustering as mc
import networkx as nx
matrix = nx.to_scipy_sparse_matrix(Gc) # build the matrix
result = mc.run_mcl(matrix) # run MCL with default parameters
clusters = mc.get_clusters(result) # get clusters
MemoryError
Why am I still getting a memory error message when trying to extract the clusters? What is the issue? How can I go around this?
UPDATE:

