fkling / JSNetworkX

Build, process and analyze graphs in JavaScript (port of NetworkX)
https://felix-kling.de/jsnetworkx/
Other
757 stars 185 forks source link

closeness and degree centrality #56

Open hdngr opened 8 years ago

hdngr commented 8 years ago

Hey There, I am happy to help start knocking out some of the basic centrality algos.

I have a small contribution in the python library.

Nice work on the library - really love the implementation of ES6! JavaScript is really making it easier to do this kind of work.

fkling commented 8 years ago

Hey! Sorry for the late reply. As you might have noticed, I haven't had much time to work on this recently. However, porting the algorithms is really the main work to do here and I was hoping to get more help with this. So yeah, I'd definitely appreciate it!

I usually look at the Python implementation and the tests and try to copy them as close as possible, making adjustments where it makes sense. The introduction of iterators and generators in ES6 really made things a lot easier.

Let me know if you have any questions!