clics / pyclics-clustering

Clustering algorithms for CLICS²
Apache License 2.0
1 stars 1 forks source link

GML doesn't allow underscores in attribute names #1

Closed chrzyki closed 5 years ago

chrzyki commented 5 years ago

label_propagation and connected_components clustering methods couldn't be used because GML doesn't allow underscores (ignore the wrong branch name, ha!) in attributes (at least when they are supposed to be written to GML, not read from).

With underscore:

raise NetworkXError('%r is not a valid key' % (key,))
networkx.exception.NetworkXError: 'label_propagation' is not a valid key

Without underscore: works!

LinguList commented 5 years ago

GML was so nice in the past, and now it is so cumbersome. I am also particularly annoyed by always having to convert to HTML entities. But what other format is so easy-to-read, straightforward, and easy-to-parse across applications (gephy, cytoscape)? If there is one, we should switch to it.

chrzyki commented 5 years ago

GEXF or GraphML might be worth checking out.