Skip to content

Instantly share code, notes, and snippets.

@rchasman
Last active December 18, 2015 11:49
Show Gist options
  • Save rchasman/5778244 to your computer and use it in GitHub Desktop.
Save rchasman/5778244 to your computer and use it in GitHub Desktop.
Cytosine 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": "C", "size": 12},
{"atom": "O", "size": 16},
{"atom": "N", "size": 14},
{"atom": "C", "size": 12},
{"atom": "C", "size": 12},
{"atom": "H", "size": 1},
{"atom": "N", "size": 14},
{"atom": "H", "size": 1},
{"atom": "H", "size": 1}
],
"links": [
{"source": 0, "target": 1, "bond": 1},
{"source": 1, "target": 2, "bond": 1},
{"source": 2, "target": 3, "bond": 1},
{"source": 2, "target": 4, "bond": 1},
{"source": 4, "target": 5, "bond": 2},
{"source": 4, "target": 6, "bond": 1},
{"source": 6, "target": 7, "bond": 2},
{"source": 7, "target": 8, "bond": 1},
{"source": 8, "target": 1, "bond": 2},
{"source": 8, "target": 9, "bond": 1},
{"source": 7, "target": 10, "bond": 1},
{"source": 10, "target": 11, "bond": 1},
{"source": 10, "target": 12, "bond": 1}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment