Code Documentation 3.4
Social Network Visualizer
Loading...
Searching...
No Matches
global.h File Reference

Global definitions, constants, enumerations, and utility types for SocNetV. More...

#include <QPair>
#include <QMetaType>
#include <QString>
Include dependency graph for global.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ClickedEdge
 Carries the identity and type of a clicked edge. More...
 
class  MyEdge
 Lightweight value type representing a directed or undirected edge. More...
 
class  GraphDistance
 Holds a (target, distance) pair for use in Dijkstra's priority queue. More...
 
class  GraphDistancesCompare
 Min-priority comparator for GraphDistance (used in std::priority_queue). More...
 
class  PairVF
 (value, frequency) pair, used in distribution charts. More...
 
class  PairVFCompare
 Min-priority comparator for PairVF (used in std::priority_queue). More...
 

Macros

#define SOCNETV_NAMESPACE   SocNetV
 
#define SOCNETV_BEGIN_NAMESPACE
 
#define SOCNETV_END_NAMESPACE   }
 
#define SOCNETV_USE_NAMESPACE   using namespace SOCNETV_NAMESPACE;
 

Typedefs

typedef QPair< int, int > SelectedEdge
 Identifies a selected edge by its two endpoint vertex numbers.
 

Enumerations

enum  NodeShape {
  Box , Circle , Diamond , Ellipse ,
  Triangle , Star , Person , PersonB ,
  Bugs , Heart , Dice , Custom
}
 Possible shapes for nodes in the network visualization. More...
 
enum  FileType {
  NOT_SAVED = 0 , GRAPHML = 1 , PAJEK = 2 , ADJACENCY = 3 ,
  GRAPHVIZ = 4 , UCINET = 5 , GML = 6 , EDGELIST_WEIGHTED = 7 ,
  EDGELIST_SIMPLE = 8 , TWOMODE = 9 , UNRECOGNIZED = -1
}
 Supported network file formats. More...
 
enum  EdgeType { Directed = 0 , Reciprocated = 1 , Undirected = 2 }
 Possible edge types in the network. More...
 
enum  IndexType {
  DC = 1 , CC = 2 , IRCC = 3 , BC = 4 ,
  SC = 5 , EC = 6 , PC = 7 , IC = 8 ,
  EVC = 9 , DP = 10 , PRP = 11 , PP = 12
}
 Centrality / prestige index identifiers. More...
 
enum  ChartType { None = -1 , Spline = 0 , Area = 1 , Bars = 2 }
 Chart style for prominence distribution visualizations. More...
 
enum  NetworkRequestType { Generic = 0 , Crawler = 1 , CheckUpdate = 2 }
 Identifies the purpose of an outgoing network request. More...
 

Variables

static SOCNETV_BEGIN_NAMESPACE const QString VERSION = "3.4"
 
static constexpr double M_PI = 3.14159265358979323846
 
static constexpr double M_PI_3 = 1.04719755119659774615
 
static constexpr double M_PI_X_2 = 6.28318530717958647692
 
static const int USER_MSG_INFO = 0
 
static const int USER_MSG_CRITICAL = 1
 
static const int USER_MSG_CRITICAL_NO_NETWORK = 2
 
static const int USER_MSG_CRITICAL_NO_EDGES = 3
 
static const int USER_MSG_QUESTION = 4
 
static const int USER_MSG_QUESTION_CUSTOM = 5
 
static const int SUBGRAPH_CLIQUE = 1
 
static const int SUBGRAPH_STAR = 2
 
static const int SUBGRAPH_CYCLE = 3
 
static const int SUBGRAPH_LINE = 4
 
static const int MATRIX_ADJACENCY = 1
 
static const int MATRIX_DISTANCES = 2
 
static const int MATRIX_DEGREE = 3
 
static const int MATRIX_LAPLACIAN = 4
 
static const int MATRIX_ADJACENCY_INVERSE = 5
 
static const int MATRIX_GEODESICS = 6
 
static const int MATRIX_REACHABILITY = 7
 
static const int MATRIX_ADJACENCY_TRANSPOSE = 8
 
static const int MATRIX_COCITATION = 9
 
static const int MATRIX_DISTANCES_EUCLIDEAN = 12
 
static const int MATRIX_DISTANCES_MANHATTAN = 13
 
static const int MATRIX_DISTANCES_JACCARD = 14
 
static const int MATRIX_DISTANCES_HAMMING = 15
 
static const int MATRIX_DISTANCES_CHEBYSHEV = 16
 

Detailed Description

Global definitions, constants, enumerations, and utility types for SocNetV.

All symbols are defined inside the SocNetV namespace. Q_DECLARE_METATYPE registrations are placed outside the namespace, as required by Qt's metatype system.

Macro Definition Documentation

◆ SOCNETV_BEGIN_NAMESPACE

#define SOCNETV_BEGIN_NAMESPACE
Value:
namespace SOCNETV_NAMESPACE \
{
#define SOCNETV_NAMESPACE
Definition global.h:21

◆ SOCNETV_END_NAMESPACE

#define SOCNETV_END_NAMESPACE   }

◆ SOCNETV_NAMESPACE

#define SOCNETV_NAMESPACE   SocNetV

◆ SOCNETV_USE_NAMESPACE

#define SOCNETV_USE_NAMESPACE   using namespace SOCNETV_NAMESPACE;

Typedef Documentation

◆ SelectedEdge

Identifies a selected edge by its two endpoint vertex numbers.

Defined here (not in graphicswidget.h) so that Graph and GraphicsWidget can both use it without a circular include dependency.

Enumeration Type Documentation

◆ ChartType

enum ChartType

Chart style for prominence distribution visualizations.

Enumerator
None 
Spline 
Area 
Bars 

◆ EdgeType

enum EdgeType

Possible edge types in the network.

Enumerator
Directed 
Reciprocated 
Undirected 

◆ FileType

enum FileType

Supported network file formats.

Enumerator
NOT_SAVED 

New or unsaved/modified network.

GRAPHML 

.graphml / .xml

PAJEK 

.paj / .net

ADJACENCY 

.csv / .adj / .sm

GRAPHVIZ 

.dot

UCINET 

.dl / .dat

GML 

.gml

EDGELIST_WEIGHTED 

.csv / .txt / .list / .lst / .wlst

EDGELIST_SIMPLE 

.csv / .txt / .list / .lst

TWOMODE 

.2sm / .aff

UNRECOGNIZED 

Unrecognised format.

◆ IndexType

enum IndexType

Centrality / prestige index identifiers.

Enumerator
DC 

Degree Centrality.

CC 

Closeness Centrality.

IRCC 

Influence Range Closeness Centrality.

BC 

Betweenness Centrality.

SC 

Stress Centrality.

EC 

Eccentricity Centrality.

PC 

Power Centrality.

IC 

Information Centrality.

EVC 

Eigenvector Centrality.

DP 

Degree Prestige.

PRP 

PageRank Prestige.

PP 

Proximity Prestige.

◆ NetworkRequestType

Identifies the purpose of an outgoing network request.

Enumerator
Generic 
Crawler 
CheckUpdate 

◆ NodeShape

enum NodeShape

Possible shapes for nodes in the network visualization.

Enumerator
Box 
Circle 
Diamond 
Ellipse 
Triangle 
Star 
Person 
PersonB 
Bugs 
Heart 
Dice 
Custom 

Variable Documentation

◆ M_PI

constexpr double M_PI = 3.14159265358979323846
staticconstexpr

◆ M_PI_3

constexpr double M_PI_3 = 1.04719755119659774615
staticconstexpr

◆ M_PI_X_2

constexpr double M_PI_X_2 = 6.28318530717958647692
staticconstexpr

◆ MATRIX_ADJACENCY

const int MATRIX_ADJACENCY = 1
static

◆ MATRIX_ADJACENCY_INVERSE

const int MATRIX_ADJACENCY_INVERSE = 5
static

◆ MATRIX_ADJACENCY_TRANSPOSE

const int MATRIX_ADJACENCY_TRANSPOSE = 8
static

◆ MATRIX_COCITATION

const int MATRIX_COCITATION = 9
static

◆ MATRIX_DEGREE

const int MATRIX_DEGREE = 3
static

◆ MATRIX_DISTANCES

const int MATRIX_DISTANCES = 2
static

◆ MATRIX_DISTANCES_CHEBYSHEV

const int MATRIX_DISTANCES_CHEBYSHEV = 16
static

◆ MATRIX_DISTANCES_EUCLIDEAN

const int MATRIX_DISTANCES_EUCLIDEAN = 12
static

◆ MATRIX_DISTANCES_HAMMING

const int MATRIX_DISTANCES_HAMMING = 15
static

◆ MATRIX_DISTANCES_JACCARD

const int MATRIX_DISTANCES_JACCARD = 14
static

◆ MATRIX_DISTANCES_MANHATTAN

const int MATRIX_DISTANCES_MANHATTAN = 13
static

◆ MATRIX_GEODESICS

const int MATRIX_GEODESICS = 6
static

◆ MATRIX_LAPLACIAN

const int MATRIX_LAPLACIAN = 4
static

◆ MATRIX_REACHABILITY

const int MATRIX_REACHABILITY = 7
static

◆ SUBGRAPH_CLIQUE

const int SUBGRAPH_CLIQUE = 1
static

◆ SUBGRAPH_CYCLE

const int SUBGRAPH_CYCLE = 3
static

◆ SUBGRAPH_LINE

const int SUBGRAPH_LINE = 4
static

◆ SUBGRAPH_STAR

const int SUBGRAPH_STAR = 2
static

◆ USER_MSG_CRITICAL

const int USER_MSG_CRITICAL = 1
static

◆ USER_MSG_CRITICAL_NO_EDGES

const int USER_MSG_CRITICAL_NO_EDGES = 3
static

◆ USER_MSG_CRITICAL_NO_NETWORK

const int USER_MSG_CRITICAL_NO_NETWORK = 2
static

◆ USER_MSG_INFO

const int USER_MSG_INFO = 0
static

◆ USER_MSG_QUESTION

const int USER_MSG_QUESTION = 4
static

◆ USER_MSG_QUESTION_CUSTOM

const int USER_MSG_QUESTION_CUSTOM = 5
static

◆ VERSION

SOCNETV_BEGIN_NAMESPACE const QString VERSION = "3.4"
static