Skip to content

Commit

Permalink
Merge pull request #392 from bedupako12mas/centrality-week6
Browse files Browse the repository at this point in the history
Centrality Week 6
  • Loading branch information
bedupako12mas authored Jul 8, 2024
2 parents 1ff6bf8 + ea879de commit 511653c
Show file tree
Hide file tree
Showing 15 changed files with 231 additions and 431 deletions.
2 changes: 1 addition & 1 deletion configuration.conf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ planar | Y | Y | Y
dominator | Y | Y | Y
ordering | Y | Y | Y
circuits | Y | Y | Y
metrics | Y | Y | N
metrics | Y | Y | Y
#----------------------
# SQL only directories
#----------------------
Expand Down
3 changes: 1 addition & 2 deletions doc/metrics/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

SET(LOCAL_FILES
metrics-family.rst
pgr_centrality.rst
pgr_betweennessCentrality.rst
)

foreach (f ${LOCAL_FILES})
Expand Down
268 changes: 0 additions & 268 deletions doc/metrics/metrics-family.rst

This file was deleted.

14 changes: 6 additions & 8 deletions doc/metrics/pgr_betweennessCentrality.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
===============================================================================

``pgr_betweennessCentrality`` - Returns the relative betweeness centrality of
all edges in a graph using Brandes Algorithm.
all vertices in a graph using Brandes Algorithm.

.. figure:: images/boost-inside.jpeg
:target: https://www.boost.org/doc/libs/1_84_0/libs/graph/doc/betweenness_centrality.html
Expand All @@ -29,9 +29,7 @@ Description

The Brandes Algorithm for utilises the sparse nature of graphs to evaluating the
betweenness centrality score of all edges/vertices.
We use Boost's implementation which runs in :math:`\Theta(VE)` for unweighted
graphs and :math:`Theta(VE + V(V+E)log(V))` for weighted graphs and uses
:math:`\Theta(VE)` space.
We use Boost's implementation which runs in :math:`\Theta(VE)` time and uses :math:`\Theta(VE)` space.

Signatures
-------------------------------------------------------------------------------
Expand All @@ -43,7 +41,7 @@ Signatures

pgr_betweennessCentrality(`Edges SQL`_, [``directed``])

| Returns set of ```(seq, edge_id, betweenness_centrality)```
| Returns set of ```(seq, vid, centrality)```
| OR EMPTY SET
.. TODO: Fix this when docqueries are made
Expand Down Expand Up @@ -91,12 +89,12 @@ Result columns
* - ``seq``
- ``INTEGER``
- Sequential Value starting from ``1``
* - ``edge_id``
* - ``vid``
- ``BIGINT``
- Identifier of the edge
- Identifier of the vertex
* - ``centrality``
- ``FLOAT``
- relative betweenness centrality score of the edge (will be in range [0,1])
- relative betweenness centrality score of the vertex (will be in range [0,1])

See Also
-------------------------------------------------------------------------------
Expand Down
Loading

0 comments on commit 511653c

Please sign in to comment.