Hi there, sorry for the newb-ish question. I have read the docs for an hour :)

I have a graph as a "dot" text file. Nodes are numbered consecutively from 1 to N. example below. I have used the minimise_blockmodel_dl method, which returns a PropertyMap b. My question is how to save a map from the dotfile's Node ID to community number as a txt file. I have saved the propertymap array b.get_array() using numpy.savetxt and it appears to be a one-dimensional array. 

b, mdl = minimize_blockmodel_dl(g,max_B=100,min_B=200,verbose=True)
array = b.get_array()
np.savetxt('1m_output_blocks_array.txt',array,'%i')

I kind of assumed that the PropertyMap would be returned in order so I could just lay a 1-N column beside b.get_array() and that would be what I want. However, I'm not getting results that make sense to me and I wanted to find out if this assumption is correct or not.

I'd also like to know the proper way of doing this for the general case where nodes could be arbitrarily labelled in the original dotfile.

Thank you very much
Alan


graph G {
1;
2;
...
1000000;
1 -- 2;
3 -- 5;
...
}