MobleyLab / chemper

Repository for Chemical Perception Sampling Tools
MIT License
19 stars 10 forks source link

Matching atoms and storage in cluster_graph #28

Open bannanc opened 5 years ago

bannanc commented 5 years ago

In PR #24 I add support for multiple layers in ClusterGraphs outside the indexed atoms. To do this I took advantage of a networkx matching function nx.algorithms.max_weight_matching (the same one we used in smarty).

It is possible there are other matching algorithms that would make more sense for this purpose. At some point I will investigate the other options for matching and compare how this algorithm pairs atoms to how I would pair atoms as a chemist.

I think the current matching is sufficient, I just wanted to make a note that the only justification for this choice was, I know it exists...

bannanc commented 5 years ago

I described this problem a bit in the preprint too. I think the ideal solution would be to make single_graphs for each set of atoms in the cluster and then find a way to overlay those graphs before combining them.