I was working on a graph file with .gr extension and came across a relevant dataset with .cm extension. My code is compatible with .gr extension but I wish to use .cm dataset.
Problem: I do not understand the format in which data is represented and thus cannot parse it. In some files there is even text instead of numbers.
The dataset represents protein molecules.
Question:
How to parse .cm file into .gr file and how is data represented in .cm file?
This is the content of one of the .cm graph file describing a graph:
5
8
0
1
7
9
-1 -1 -1 1
1 -1 -1
1 -1
1
Now how to figure out the number of nodes and the edges present in this graph.
This is the content of a .gr file extension.
p cep 4 3
1 2
1 3
1 4