Graph der Bindungen eines Moleküls
Sie können fertige Graphen und Netzwerke aus kuratierten Sammlungen nutzen, wie zum Beispiel ChemicalData.
Die Grundstruktur von Koffein.
In[1]:=
![Click for copyable input](assets.de/bond-connectivity-graph-of-a-molecule/In_27.png)
ChemicalData["Caffeine", "StructureGraph"]
Out[1]=
![](assets.de/bond-connectivity-graph-of-a-molecule/O_22.png)
Stellen Sie zwei Strukturen von Säuremolekülen dar.
In[2]:=
![Click for copyable input](assets.de/bond-connectivity-graph-of-a-molecule/In_28.png)
ChemicalData[#, "StructureGraph"] & /@ {"NEthylmethylamine",
"Propylamine"}
Out[2]=
![](assets.de/bond-connectivity-graph-of-a-molecule/O_23.png)
Testen Sie die beiden Graphen auf Isomorphie.
In[3]:=
![Click for copyable input](assets.de/bond-connectivity-graph-of-a-molecule/In_29.png)
ChemicalData[#, "StructureGraph"] & /@ {"NEthylmethylamine",
"Propylamine"};
IsomorphicGraphQ @@ %
Out[3]=
![](assets.de/bond-connectivity-graph-of-a-molecule/O_24.png)