Molecular graph models

Basic molecular graph type and interfaces

MolecularGraph.u_edgeMethod
u_edge(::Type{T}, src, dst) where T <: Integer -> Edge{T}
u_edge(g::SimpleGraph{T}, src, dst) where T -> Edge{T}
u_edge(mol::AbstractMolGraph{T}, src, dst) where T -> Edge{T}

A workaround for UndirectedEdge that are not yet implemented in SimpleGraph

source

Default atom and bond types

MolecularGraph.SDFBondType
SDFBond

SDFile (CTAB) bond property type.

  • SDFile bond notation
    • Single bond
      • 0: u - v
      • 1: u ◀ v (Up-arrow)
      • 4: u ~ v (Up or down)
      • 6: u ◁ v (Down-arrow)
    • Double bond
      • 0: v = u
      • 3: u x v (Cis-Trans Unknown)
source