Skip to content

Instantly share code, notes, and snippets.

@tyzbit
Last active April 6, 2018 23:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tyzbit/d1c83732d2767bb955125d41f5921888 to your computer and use it in GitHub Desktop.
Save tyzbit/d1c83732d2767bb955125d41f5921888 to your computer and use it in GitHub Desktop.
Lightning-VR
function getGraphDataSets() {
const loadBlocks = function(Graph) {
qwest.get('graph.json').then((_, data) => {
//data.nodes.forEach(node => { node.name = `${node.alias?node.alias+': ':''}${node.pub_key || node.id}` });
data.nodes.forEach(node => { node.name = `${node.alias}` });
Graph
.cooldownTicks(300)
.cooldownTime(20000)
.nodeColor('color')
.linkAutoColorBy('capacity')
.linkLabel('capacity')
.linkOpacity(0.4)
.forceEngine('ngraph')
.graphData(data);
});
};
loadBlocks.description = "<em>Lightning Mainnet</em> data (<a href='https://gist.github.com/tyzbit/93bb73fde487210974977ba29e04b2ed'>https://gist.github.com/tyzbit/93bb73fde487210974977ba29e04b2ed</a>)";
return [loadBlocks];
}
This file has been truncated, but you can view the full file.
View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment