graph.h File Reference
#include <QObject>
#include <QDateTime>
#include <QList>
#include <QHash>
#include <QTextStream>
#include <QThread>
#include <stack>
#include <map>
#include "vertex.h"
#include "matrix.h"
#include "parser.h"
#include "webcrawler.h"
Include dependency graph for graph.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ClickedEdge
 
class  GraphDistance
 
class  GraphDistancesCompare
 
class  Graph
 The Graph class This is the main class for a Graph, used in conjuction with Vertex, Parser and Matrix objects. Graph class methods are the interface to various analysis algorithms Vertex class holds each vertex data (colors, strings, statistics, etc) Matrix class holds the adjacency matrix of the network. Parser class loads files of networks. More...
 

Typedefs

typedef QList< Vertex * > Vertices
 
typedef QHash< QString, int > H_StrToInt
 
typedef QHash< long int, long int > H_Int
 
typedef QPair< float, bool > pair_f_b
 
typedef QPair< int, pair_f_brel_w_bool
 
typedef QHash< int, rel_w_boolH_edges
 
typedef QHash< QString, bool > H_StrToBool
 
typedef QList< int > L_int
 
typedef QVector< int > V_int
 
typedef QVector< QString > V_str
 
typedef pair< int, int > SelectedEdge
 

Variables

static const int EDGE_DIRECTED = 0
 
static const int EDGE_DIRECTED_OPPOSITE_EXISTS = 1
 
static const int EDGE_RECIPROCAL_UNDIRECTED = 2
 
static const int FILE_GRAPHML = 1
 
static const int FILE_PAJEK = 2
 
static const int FILE_ADJACENCY = 3
 
static const int FILE_GRAPHVIZ = 4
 
static const int FILE_UCINET = 5
 
static const int FILE_GML = 6
 
static const int FILE_EDGELIST_WEIGHTED = 7
 
static const int FILE_EDGELIST_SIMPLE = 8
 
static const int FILE_TWOMODE = 9
 
static const int FILE_UNRECOGNIZED =-1
 
static const int GRAPH_CHANGED_NONE = 0
 
static const int GRAPH_CHANGED_MINOR_OPTIONS = 1
 
static const int GRAPH_CHANGED_VERTICES_METADATA = 2
 
static const int GRAPH_CHANGED_EDGES_METADATA = 3
 
static const int GRAPH_CHANGED_POSITIONS = 4
 
static const int GRAPH_CHANGED_VERTICES = 11
 
static const int GRAPH_CHANGED_EDGES = 12
 
static const int GRAPH_CHANGED_VERTICES_AND_EDGES = 13
 
static const int GRAPH_CHANGED_NEW = 14
 
static const int CLUSTERING_SINGLE_LINKAGE = 0
 
static const int CLUSTERING_COMPLETE_LINKAGE = 1
 
static const int CLUSTERING_AVERAGE_LINKAGE = 2
 
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
 

Typedef Documentation

typedef QHash< int, rel_w_bool > H_edges
typedef QHash<long int, long int> H_Int
typedef QHash<QString, bool> H_StrToBool
typedef QHash<QString, int> H_StrToInt
typedef QList<int> L_int
typedef QPair<float, bool> pair_f_b
typedef QPair<int, pair_f_b > rel_w_bool
typedef pair<int, int> SelectedEdge
typedef QVector<int> V_int
typedef QVector<QString> V_str
typedef QList<Vertex*> Vertices

Variable Documentation

const int CLUSTERING_AVERAGE_LINKAGE = 2
static
const int CLUSTERING_COMPLETE_LINKAGE = 1
static
const int CLUSTERING_SINGLE_LINKAGE = 0
static
const int EDGE_DIRECTED = 0
static
const int EDGE_DIRECTED_OPPOSITE_EXISTS = 1
static
const int EDGE_RECIPROCAL_UNDIRECTED = 2
static
const int FILE_ADJACENCY = 3
static
const int FILE_EDGELIST_SIMPLE = 8
static
const int FILE_EDGELIST_WEIGHTED = 7
static
const int FILE_GML = 6
static
const int FILE_GRAPHML = 1
static
const int FILE_GRAPHVIZ = 4
static
const int FILE_PAJEK = 2
static
const int FILE_TWOMODE = 9
static
const int FILE_UCINET = 5
static
const int FILE_UNRECOGNIZED =-1
static
const int GRAPH_CHANGED_EDGES = 12
static
const int GRAPH_CHANGED_EDGES_METADATA = 3
static
const int GRAPH_CHANGED_MINOR_OPTIONS = 1
static
const int GRAPH_CHANGED_NEW = 14
static
const int GRAPH_CHANGED_NONE = 0
static
const int GRAPH_CHANGED_POSITIONS = 4
static
const int GRAPH_CHANGED_VERTICES = 11
static
const int GRAPH_CHANGED_VERTICES_AND_EDGES = 13
static
const int GRAPH_CHANGED_VERTICES_METADATA = 2
static
const int MATRIX_ADJACENCY = 1
static
const int MATRIX_ADJACENCY_INVERSE = 5
static
const int MATRIX_ADJACENCY_TRANSPOSE = 8
static
const int MATRIX_COCITATION = 9
static
const int MATRIX_DEGREE = 3
static
const int MATRIX_DISTANCES = 2
static
const int MATRIX_DISTANCES_CHEBYSHEV = 16
static
const int MATRIX_DISTANCES_EUCLIDEAN = 12
static
const int MATRIX_DISTANCES_HAMMING = 15
static
const int MATRIX_DISTANCES_JACCARD = 14
static
const int MATRIX_DISTANCES_MANHATTAN = 13
static
const int MATRIX_GEODESICS = 6
static
const int MATRIX_LAPLACIAN = 4
static
const int MATRIX_REACHABILITY = 7
static
const int SUBGRAPH_CLIQUE = 1
static
const int SUBGRAPH_CYCLE = 3
static
const int SUBGRAPH_LINE = 4
static
const int SUBGRAPH_STAR = 2
static