-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
very large networks ( > 1M nodes) possible? #79
Comments
Just tried this out. It looks like 1M nodes + 1M edges results in just On Fri, May 13, 2016, at 08:37 PM, Paul Shannon wrote:
Links: |
Thanks, Corey. Could I trouble you to post your code, perhaps as a gist?
|
<html>
<head>
<meta charset="UTF-8">
<style>
#frame {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: 0;
}
</style>
</head>
<body>
<div id="frame"></div>
<script src="../../dist/graphosaurus.js"></script>
<script>
var nodes = [];
graph = G.graph({
nodeImage: "../_common/disc.png",
nodeImageTransparent: true,
antialias: true,
bgColor: 0xEEEEEE,
edgeWidth: 4,
nodeSize: 18,
});
for (var i = 0; i < 100000; i++) {
var node = G.node(randomPosition(), {color: 0x444444});
if (nodes.length > 0) {
var randomIndex = Math.floor(Math.random() * nodes.length);
var otherNode = nodes[randomIndex];
G.edge([node, otherNode], {color: 0x222222}).addTo(graph);
}
nodes.push(node);
node.addTo(graph);
}
graph.renderIn('frame');
function randomPosition() {
return [Math.random(), Math.random(), Math.random()];
}
</script>
</body>
</html> |
Very nice., thank you. This is some lovely capability you have created. After running a few examples I am now experimenting with trees, with the goal of rendering phylogenetic relationships in the microbiome. Two questions arose quickly for me:
|
Wow, I must have missed this last comment. Sorry for the very late reply!
More info in
I think you want Line 14 in bbebeb8
|
Thanks, Cory! Your answers are very encouraging -- if a little delayed :} I will get back to my experimenting soon.
|
Intrigued to discover this project. Before diving in, may I ask if Graphosaurus supports very large networks, with > 10^6 nodes?
Thanks!
The text was updated successfully, but these errors were encountered: