Tulip Plugins
Public Member Functions
EccentricityMetric Class Reference

#include <Eccentricity.h>

List of all members.

Public Member Functions

 EccentricityMetric (const tlp::PropertyContext &)
 ~EccentricityMetric ()
bool run ()
double compute (tlp::node n)
bool check (std::string &)

Detailed Description

This plugin compute the eccentricity/closeness centrality of each node

Eccentricity is the maximum distance to go from a node to all others. In this version the Eccentricity value can be normalized (1 means that a node is one of the most eccentric in the network, 0 means that a node is on the centers of the network).

More information about the use of eccentricity metric can be found in :

Visone: Analysis and visualization of social networks.
"Book. Graph Drawing Software. (Ed. Michael Junger & Petra Mutzel",
Authors : Ulrik Brandes and Dorothea Wagner.
"2004",
pages 321-340.

Closeness Centrality is the mean of shortest-paths lengths from a node to others. The normalized values are computed using the reciprocal of the sum of these distances (see "http://en.wikipedia.org/wiki/Closeness_(graph_theory)#Closeness_centrality" for more details).

Note:
The complexity of the algorithm is O(|V| * |E|) time and O(1) space.

Constructor & Destructor Documentation

EccentricityMetric::EccentricityMetric ( const tlp::PropertyContext &  context)
EccentricityMetric::~EccentricityMetric ( )

Member Function Documentation

bool EccentricityMetric::check ( std::string &  )
double EccentricityMetric::compute ( tlp::node  n)
bool EccentricityMetric::run ( )