-
I'm trying to use d3 to draw a network graph. And my origin dataset is like this(json):
And through this, I can code like below to generate a network graph with given nodes and links:
This seems normal, but I'm looking for a larger dataset at https://snap.stanford.edu/data/. And the dataset doesn't like the dataset I have shown before. It only has edge lists without nodes like the pictures(.csv): So, in this case, how should I modify my code to draw such a network graph using d3? By the way, I'm trying to have smaller datasets, and when the datasets are large, like graphs with three thousand nodes and tens of thousands of edges, I feel like my computer can't run. Is there any way to do it in this case? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, using SVG and even canvas with computations on the CPU only goes so far. For large datasets, you can try @anvaka's ngraph library, or give a shot to the new cosmograph, by @rokotyan. Links:
In the last example I create the nodes from the original dataset which only contains links. |
Beta Was this translation helpful? Give feedback.
Yes, using SVG and even canvas with computations on the CPU only goes so far. For large datasets, you can try @anvaka's ngraph library, or give a shot to the new cosmograph, by @rokotyan.
Links:
In the last example I create the nodes from the original dataset which only contains links.