<commit_before># ngraph.centrality

Module to calculate graph centrality metrics. Library computes degree centrality
for entire graph and returns list of nodes in descending order of centrality:
`[{ key: nodeId, value: centrality_value }, ... ]`

# usage

## [Degree centrality](https://en.wikipedia.org/wiki/Centrality#Degree_centrality)

``` javascript
var centrality = require('ngraph.centrality');
var g = require('ngraph.graph')();
<commit_msg>Formatting<commit_after># ngraph.centrality

Module to calculate graph centrality metrics. Library computes centrality
for entire graph and returns list of nodes in descending order of centrality:

``` javascript
[
  { key: nodeId, value: centrality_value },
  { key: secondNodeId, value: centrality_value },
  // ...
]
```

# usage

## [Degree centrality](https://en.wikipedia.org/wiki/Centrality#Degree_centrality)

``` javascript
var centrality = require('ngraph.centrality');
var g = require('ngraph.graph')();

{'fraction_non_alphanumeric': 0.12448132780082988, 'fraction_numerical': 0.0, 'mean_word_length': 5.433333333333334, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '34645', 'n_tokens_mistral': 305, 'n_tokens_neox': 285, 'n_words': 82}