https://github.com/aurbano/language-graph
Directed World languages graph (Only Indo-European languages for now)
https://github.com/aurbano/language-graph
graph javascript language-graph
Last synced: 7 months ago
JSON representation
Directed World languages graph (Only Indo-European languages for now)
- Host: GitHub
- URL: https://github.com/aurbano/language-graph
- Owner: aurbano
- License: mit
- Created: 2015-05-12T12:08:30.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-12-18T21:01:08.000Z (almost 6 years ago)
- Last Synced: 2025-01-18T15:51:29.016Z (9 months ago)
- Topics: graph, javascript, language-graph
- Language: JavaScript
- Homepage: https://aurbano.github.io/language-graph
- Size: 167 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# language-graph [](https://travis-ci.org/aurbano/language-graph)
> Directed World languages graph. [See Demo](https://aurbano.github.io/language-graph)
[](http://urbanoalvarez.es/language-graph)
It uses public data extracted from [multiple sources](https://github.com/aurbano/language-graph/blob/master/data/sources.json), and D3js to render the graph.
As the dataset improves I'll add a RESTful API to consume it, instead of the current JSON file. I will also probably move it to another repository containing only the data.
The graph renderer accepts several parameters that are then fed to D3:
|Parameter|Default|Description|
|---------|-------|-----------|
|linkDistance|30|Sets the target distance between linked nodes to the specified value. Links are not implemented as "spring forces", as is common in other force-directed layouts, but as weak geometric constraints.|
|charge|-60|Sets the charge strength to the specified value. A negative value results in node repulsion, while a positive value results in node attraction.|
|linkStrength|0.1|Sets the strength (rigidity) of links to the specified value in the range [0,1].|
|friction|0.002|Sets the friction coefficient to the specified value. It is similar to velocity decay: at each tick of the simulation, the particle velocity is scaled by the specified `friction`. Thus, a value of 1 corresponds to a frictionless environment, while a value of 0 freezes all particles in place.|
|gravity|0.1|Sets the gravitational strength to the specified numerical value. `gravity` is implemented as a weak geometric constraint similar to a virtual spring connecting each node to the center of the layout's size.|
|theta|0.8|Sets the [Barnes–Hut](http://en.wikipedia.org/wiki/Barnes-Hut_simulation) approximation criterion to the specified value.|
|alpha|0.1|Sets the force layout's cooling parameter|[](https://github.com/aurbano)