snap-stanford / snap

Stanford Network Analysis Platform (SNAP) is a general purpose network analysis and graph mining library.
Other
2.17k stars 797 forks source link

CESNA community Detection input format #135

Closed shashankg7 closed 6 years ago

shashankg7 commented 6 years ago

Hi,

I am trying to run the "CESNA" community detection algorithm on my dataset. Howerver, I am not able to get the input format for passing the node features to the algorithm.

The example file which is given is not clear. Could you please provide/explain the schema for node attributes file.

Thanks in advance!

roks commented 6 years ago

The edges file, 1912.edges, provides one edge per line, the first column is the source edge, the second column is the destination edge. The node attribute file, 1912.nodefeat, provides nodes attributes, the first column is the node id, the second column is the feature value. The node feature names file, 1912.nodefeatnames, provides a mapping from feature values to feature text, the first column is feature value, the second is a text of all the features.