Skip to content

Instantly share code, notes, and snippets.

@rchasman
Created June 13, 2013 23:20
Show Gist options
  • Save rchasman/5778256 to your computer and use it in GitHub Desktop.
Save rchasman/5778256 to your computer and use it in GitHub Desktop.
Guanine nitrogenous base JSON representation. Made for a d3.js force directed graph.
{
"nodes": [
{"atom": "H", "size": 1},
{"atom": "C", "size": 12},
{"atom": "N", "size": 14},
{"atom": "H", "size": 1},
{"atom": "N", "size": 14},
{"atom": "C", "size": 12},
{"atom": "C", "size": 12},
{"atom": "N", "size": 14},
{"atom": "C", "size": 12},
{"atom": "N", "size": 14},
{"atom": "H", "size": 1},
{"atom": "H", "size": 1},
{"atom": "N", "size": 14},
{"atom": "H", "size": 1},
{"atom": "C", "size": 12},
{"atom": "O", "size": 16}
],
"links": [
{"source": 0, "target": 1, "bond": 1},
{"source": 1, "target": 2, "bond": 1},
{"source": 2, "target": 3, "bond": 1},
{"source": 2, "target": 6, "bond": 1},
{"source": 6, "target": 5, "bond": 2},
{"source": 5, "target": 4, "bond": 1},
{"source": 4, "target": 1, "bond": 2},
{"source": 6, "target": 7, "bond": 1},
{"source": 7, "target": 8, "bond": 2},
{"source": 8, "target": 9, "bond": 1},
{"source": 9, "target": 10, "bond": 1},
{"source": 9, "target": 11, "bond": 1},
{"source": 8, "target": 12, "bond": 1},
{"source": 12, "target": 13, "bond": 1},
{"source": 12, "target": 14, "bond": 1},
{"source": 14, "target": 5, "bond": 1},
{"source": 14, "target": 15, "bond": 2}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment