Class: CNATool

CNATool()

new CNATool()

CNATool core class.
Source:

Methods

calculateAverageShortestPath(property, useGPU)

Calculates the average shortest path.
Parameters:
Name Type Description
property object Network properties (n, m and directed).
useGPU boolean Uses the GPU to speed up calculations.
Source:
Returns:
Graph properties.

calculateProperties(property, useGPU)

Calculates graph properties.
Parameters:
Name Type Description
property object Network properties (n, m and directed).
useGPU boolean Uses the GPU to speed up calculations.
Source:
Returns:
Graph properties.

getCentralitiesReport(property)

Create vertices centralities report.
Parameters:
Name Type Description
property object Network properties (n, m and directed).
Source:
Returns:
Vertices centralities report in HTML format.

getClusteringReport(property)

Create vertices clustering report.
Parameters:
Name Type Description
property object Network properties (n, m and directed).
Source:
Returns:
Vertices clustering report in HTML format.

getDegreesReport(property)

Create vertices degrees report.
Parameters:
Name Type Description
property object Network properties (n, m and directed).
Source:
Returns:
Vertices degrees report in HTML format.

getSummaryReport(property, includeDegDist)

Create summary report.
Parameters:
Name Type Description
property object Network properties (n, m and directed).
includeDegDist boolean Include degree distribution in report.
Source:
Returns:
Summary report in HTML format.

run()

Interpret the options passed on the command line, process the files and generate the requested reports.
Source:

(inner) init()

Creates the attributes of the class.
Source: