Skip to content

Commit cdaefec

Browse files
update info
1 parent 9218fe4 commit cdaefec

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Eigenvector Centrality on PHP
22

3-
PHP library to do calculates Eigenvector Centrality of a graph. Eigenvector Centrality is one of the Social Network Analysis algorithms. Basically, this library just translating the [PowerIteration by Aboks](https://github.com/aboks/power-iteration) to the Graph way.
3+
A PHP library to do calculates Eigenvector Centrality of a graph. Eigenvector Centrality is one of the Social Network Analysis algorithms. Basically, this library just translating the [PowerIteration by Aboks](https://github.com/aboks/power-iteration) to the Graph way.
44

55
## Installation
66

@@ -10,7 +10,9 @@ Install using composer:
1010
composer require sensasi-delight/eigenvector-cetrality-php
1111
```
1212

13-
## Basic usage
13+
## Usage
14+
15+
The usage examples of this library are also available on [examples folder](https://github.com/sensasi-delight/eigenvector-centrality-php/tree/main/examples).
1416

1517
1. Make a Graph object
1618

@@ -69,19 +71,19 @@ composer require sensasi-delight/eigenvector-cetrality-php
6971

7072
```php
7173
$result = $g->get_eigenvector_centrality();
72-
print_r(result);
74+
print_r($result);
7375
```
7476

7577
it's should be returning output:
7678

7779
```bash
7880
Array
7981
(
80-
[node1] => 0.4119172769405
81-
[node2] => 0.58253899962505
82-
[node3] => 0.4119172769405
83-
[node4] => 0.52368294422478
84-
[node5] => 0.21691657788138
82+
[v1] => 0.4119172769405
83+
[v2] => 0.58253899962505
84+
[v3] => 0.4119172769405
85+
[v4] => 0.52368294422478
86+
[v5] => 0.21691657788138
8587
)
8688
```
8789

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "sensasi-delight/eigenvector-centrality-php",
3-
"description": "PHP library to do calculates Eigenvector Centrality of a graph. Eigenvector Centrality is one of the Social Network Analysis algorithms. Basically, this library just translating the PowerIteration by Aboks to the Graph way.",
4-
"minimum-stability": "stable",
3+
"description": "A PHP library to do calculates Eigenvector Centrality of a graph. Eigenvector Centrality is one of the Social Network Analysis algorithms. Basically, this library just translating the PowerIteration by Aboks to the Graph way.",
54
"type": "library",
65
"license": "MIT",
76
"keywords": ["eigenvector centrality", "social network analysis", "graph", "algorithm"],
@@ -11,11 +10,12 @@
1110
}
1211
},
1312
"authors": [
14-
{
15-
"name": "Zain Adam",
13+
{
14+
"name": "Zain Adam",
1615
"email": "[email protected]"
1716
}
1817
],
18+
"minimum-stability": "stable",
1919
"require": {
2020
"php": "^7.3",
2121
"aboks/power-iteration": "^1.0"

0 commit comments

Comments
 (0)