Skip to main content
edited tags; edited title
Link
200_success
  • 144.2k
  • 22
  • 188
  • 473

d3 graph D3 visualization of a Facebook friend graph

deleted 42 characters in body; edited tags; edited title
Source Link
Jamal
  • 34.9k
  • 13
  • 133
  • 237

How can I optimize my d3 graph visualization?

I understand that the number of edges to calculate grows O(n2)\$O(n^2)\$ with nodes, so complexity increases quickly for users with lots of friends, but I'm wondering if:

I'm pretty new to programming and very new to JavaScript, so I'm sure I'm making some mistakes. The relevant code is included below.

How can I optimize my d3 graph visualization?

I understand that the number of edges to calculate grows O(n2) with nodes, so complexity increases quickly for users with lots of friends, but I'm wondering if

I'm pretty new to programming and very new to JavaScript, so I'm sure I'm making some mistakes. The relevant code is included below.

d3 graph visualization

I understand that the number of edges to calculate grows \$O(n^2)\$ with nodes, so complexity increases quickly for users with lots of friends, but I'm wondering if:

I'm pretty new to programming and very new to JavaScript, so I'm sure I'm making some mistakes.

clearer breakdown of subquestions, and tag
Source Link
Jamal
  • 34.9k
  • 13
  • 133
  • 237

I've been learning Python for about a year and now I'm trying to improve my JavascriptJavaScript. I wrote this simple d3 visualization that shows your Facebook friends as a force-directed graph. Here's a live version and here's the source on GithubGitHub. It works well, but it can be slow.

I understand that the number of edges to calculate grows O(n^2n2) with nodes, so complexity increases quickly for users with lots of friends, but I'm wondering if

  1. there are any obvious optimizations I could make,

  2. what bad habits I might be importing from Python, and

  3. how I might tweak the layout parameters to reach equilibrium faster.

I'm pretty new to programming and very new to JavascriptJavaScript, so I'm sure I'm making some mistakes. The relevant code is included below. Thanks!

I've been learning Python for about a year and now I'm trying to improve my Javascript. I wrote this simple d3 visualization that shows your Facebook friends as a force-directed graph. Here's a live version and here's the source on Github. It works well, but it can be slow.

I understand that the number of edges to calculate grows O(n^2) with nodes, so complexity increases quickly for users with lots of friends, but I'm wondering if

  1. there are any obvious optimizations I could make,

  2. what bad habits I might be importing from Python, and

  3. how I might tweak the layout parameters to reach equilibrium faster.

I'm pretty new to programming and very new to Javascript, so I'm sure I'm making some mistakes. The relevant code is included below. Thanks!

I've been learning Python for about a year and now I'm trying to improve my JavaScript. I wrote this simple d3 visualization that shows your Facebook friends as a force-directed graph. Here's a live version and here's the source on GitHub. It works well, but it can be slow.

I understand that the number of edges to calculate grows O(n2) with nodes, so complexity increases quickly for users with lots of friends, but I'm wondering if

  1. there are any obvious optimizations I could make

  2. what bad habits I might be importing from Python

  3. how I might tweak the layout parameters to reach equilibrium faster

I'm pretty new to programming and very new to JavaScript, so I'm sure I'm making some mistakes. The relevant code is included below.

Tweeted twitter.com/#!/StackCodeReview/status/243906793372270592
deleted 69 characters in body
Source Link
Loading
Source Link
Loading