42typedef QMultiHash < int, pair_i_fb >
H_edges;
61 const QString &numColor,
68 const QString &iconPath,
69 const int &edgesEstimate = 2000,
70 const QHash<QString,QString> &nodeAttr = QHash<QString,QString>()
86 void setShape(
const QString &
shape,
const QString &iconPath = QString());
87 QString
shape()
const;
91 QString
color()
const;
104 QString
label()
const;
118 void setX(
const qreal &
x);
121 void setY(
const qreal &
y);
125 QPointF
pos ()
const;
133 void addOutEdge (
const int &v2,
const qreal &weight,
const QString &
color=QString(),
const QString &
label=QString());
134 qreal
hasEdgeTo(
const int &v,
const bool &allRelations=
false);
143 void addInEdge(
const int &v1,
const qreal &weight);
144 qreal
hasEdgeFrom (
const int &v,
const bool &allRelations=
false);
277 int cliques (
const int &ofSize);
279 void cliqueAdd (
const QList<int> &clique);
298 const bool &preserveReverseEdge=
false,
299 const int &edgeWeight=1,
300 const int &reverseEdgeWeight=1
315 qreal
m_DC,
m_SDC,
m_DP,
m_SDP,
m_CC,
m_SCC,
m_BC,
m_SBC,
m_IRCC,
m_SIRCC,
m_SC,
m_SSC;
Definition graphvertex.h:51
void setInEdgeEnabled(const int &source, bool)
Sets the status of an inbound edge from the given source vertex.
Definition graphvertex.cpp:700
qreal DP()
Definition graphvertex.h:254
int m_inEdgesNonSym
Definition graphvertex.h:308
qreal IRCC()
Definition graphvertex.h:224
qreal BC()
Definition graphvertex.h:229
void setInEdgeWeight(const int &source, const qreal &weight)
Sets the weight of the inbound edge from the given vertex.
Definition graphvertex.cpp:731
qreal m_SSC
Definition graphvertex.h:315
qreal delta()
Returns the stored pair dependency of the vertex.
Definition graphvertex.cpp:1335
void setOutEdgeEnabled(const int &target, bool)
Sets the status of an outbound edge to the given target vertex.
Definition graphvertex.cpp:525
qreal SPRP()
Definition graphvertex.h:260
void setLabel(const QString &label)
Sets the label of the vertex.
Definition graphvertex.cpp:261
void clearPs()
Clears the list of predecessors of this vertex.
Definition graphvertex.cpp:1344
int m_inEdgesCounter
Definition graphvertex.h:307
QString m_labelColor
Definition graphvertex.h:320
qreal m_SPP
Definition graphvertex.h:317
H_edges m_outEdges
Definition graphvertex.h:284
void cliqueAdd(const QList< int > &clique)
Adds clique to my cliques.
Definition graphvertex.cpp:1385
QHash< int, qreal > * outEdgesAllRelationsUniqueHash()
Returns a qhash of all edges to neighbors in all relations.
Definition graphvertex.cpp:920
qreal m_BC
Definition graphvertex.h:315
qreal CC()
Definition graphvertex.h:219
void setEnabled(const bool &status)
Toggles the status of the vertex.
Definition graphvertex.cpp:129
QString numberColor() const
Returns the color of the vertex number.
Definition graphvertex.cpp:221
int m_outDegree
Definition graphvertex.h:307
QString m_color
Definition graphvertex.h:320
qreal EC()
Definition graphvertex.h:239
L_int myPs
Definition graphvertex.h:325
int numberSize() const
Returns the size of the vertex number.
Definition graphvertex.cpp:237
void setEC(const qreal &dist)
Definition graphvertex.h:237
void setDelta(const qreal &c)
Stores the pair dependency of the vertex.
Definition graphvertex.cpp:1327
void clearDistance()
Removes all items from m_distance hash dictionary.
Definition graphvertex.cpp:1244
int size() const
Returns the size of the vertex.
Definition graphvertex.cpp:153
QString shape() const
Returns the shape of the vertex.
Definition graphvertex.cpp:171
qreal m_SPC
Definition graphvertex.h:316
void setInEdgesNonSym(int inEdgesNonSym=-1)
Definition graphvertex.h:207
void setLabelDistance(const int &distance)
Sets the distance (in pixels) of the label from the vertex.
Definition graphvertex.cpp:309
void setSEVC(const qreal &c)
Definition graphvertex.h:272
QString outEdgeLabel(const int &v2) const
Returns the label of the outbound edge to the given vertex.
Definition graphvertex.cpp:606
void set_dispX(qreal x)
Sets the x coordinate of the displacement vector.
Definition graphvertex.cpp:400
qreal m_delta
Definition graphvertex.h:314
void setSDP(const qreal &c)
Definition graphvertex.h:253
void setPC(const qreal &c)
Definition graphvertex.h:242
double m_x
Definition graphvertex.h:312
void setNumberSize(const int &size)
Sets the size of the vertex number.
Definition graphvertex.cpp:229
int inDegreeConst()
Returns the indegree. Avoid using it alone.
Definition graphvertex.cpp:1102
qreal m_IC
Definition graphvertex.h:316
void setLabelSize(const int &size)
Sets the size of the vertex label.
Definition graphvertex.cpp:293
void setSCC(const qreal &c)
Definition graphvertex.h:218
qreal SDC()
Definition graphvertex.h:213
QString labelColor() const
Returns the color of the vertex label.
Definition graphvertex.cpp:285
void setEVC(const qreal &c)
Definition graphvertex.h:271
qreal m_SDC
Definition graphvertex.h:315
void addOutEdge(const int &v2, const qreal &weight, const QString &color=QString(), const QString &label=QString())
Adds an outbound edge to vertex v2 with weight w.
Definition graphvertex.cpp:441
void setSPP(const qreal &c)
Definition graphvertex.h:263
int m_outEdgesSym
Definition graphvertex.h:308
L_int m_neighborhoodList
Definition graphvertex.h:327
H_IntToStr m_outLinkColors
Definition graphvertex.h:328
void setSDC(const qreal &c)
Definition graphvertex.h:211
void setDistanceSum(const qreal &c)
Definition graphvertex.h:215
void appendToPs(const int &vertex)
Appends a vertex to the list of predecessors of this vertex.
Definition graphvertex.cpp:1352
void setNumberColor(const QString &color)
Sets the color of the vertex number.
Definition graphvertex.cpp:213
QString colorToPajek()
Returns the vertex color in pajek format.
Definition graphvertex.cpp:202
void setSIRCC(const qreal &c)
Definition graphvertex.h:223
QHash< int, qreal > reciprocalEdgesHash()
Returns a qhash of all reciprocal edges to neighbors in the active relation.
Definition graphvertex.cpp:941
void setIC(const qreal &c)
Definition graphvertex.h:247
qreal m_DP
Definition graphvertex.h:315
int inEdgesCount()
Returns the number of active inbound arcs to this vertex for the current relation.
Definition graphvertex.cpp:807
void setShortestPaths(const int &v1, const int &sp)
Stores the number of shortest paths from this vertex to vertex v1.
Definition graphvertex.cpp:1257
void setEccentricity(const qreal &c)
Stores the eccentricity of the vertex.
Definition graphvertex.cpp:1311
void setOutEdgeWeight(const int &target, const qreal &weight)
Sets the weight of the outbound edge to the given vertex.
Definition graphvertex.cpp:556
void setSPC(const qreal &c)
Definition graphvertex.h:243
void setSEC(const qreal &c)
Definition graphvertex.h:238
QMultiHash< int, L_int > m_cliques
Definition graphvertex.h:326
qreal m_EC
Definition graphvertex.h:314
qreal m_SDP
Definition graphvertex.h:315
QList< int > neighborhoodList()
Returns a list of all neighbors mutually connected to this vertex in the active relation.
Definition graphvertex.cpp:977
qreal m_SEVC
Definition graphvertex.h:317
void setY(const qreal &y)
Sets the vertical position (in pixels) of the vertex.
Definition graphvertex.cpp:365
int m_labelDistance
Definition graphvertex.h:309
int labelSize() const
Returns the size of the vertex label.
Definition graphvertex.cpp:301
L_int Ps(void)
Returns the list of predecessors of this vertex.
Definition graphvertex.cpp:1362
void setNumberDistance(const int &distance)
Sets the distance (in pixels) of the vertex number from the vertex.
Definition graphvertex.cpp:245
void setNumber(const int &number)
Sets the vertex number.
Definition graphvertex.cpp:121
qreal m_SIRCC
Definition graphvertex.h:315
QString m_shape
Definition graphvertex.h:320
void setIsolated(bool isolated)
Toggles this vertex as isolated or not.
Definition graphvertex.cpp:860
bool m_reciprocalLinked
Definition graphvertex.h:311
QPointF m_disp
Definition graphvertex.h:321
H_distance m_distance
Definition graphvertex.h:289
qreal hasEdgeTo(const int &v, const bool &allRelations=false)
Checks if the vertex has an enabled outbound edge to the given vertex. Returns the edge weight or 0.
Definition graphvertex.cpp:462
void setOutEdgeLabel(const int &v2, const QString &label)
Sets the label of the outbound edge to the given vertex.
Definition graphvertex.cpp:597
double m_y
Definition graphvertex.h:312
qreal m_PC
Definition graphvertex.h:316
bool isInLinked()
Returns true if there is an outEdge from this vertex.
Definition graphvertex.cpp:851
QPointF & disp()
Returns displacement vector.
Definition graphvertex.cpp:414
void setCLC(const qreal &clucof)
Definition graphvertex.h:268
void setRelation(int newRel)
Changes the current relation of this vertex.
Definition graphvertex.cpp:423
qreal SIC()
Definition graphvertex.h:250
qreal m_SPRC
Definition graphvertex.h:316
void removeOutEdge(const int target)
Removes the outbound edge to vertex v2.
Definition graphvertex.cpp:493
QHash< int, qreal > * inEdgesEnabledHash()
Returns a qhash of all enabled inEdges in the active relation.
Definition graphvertex.cpp:1008
qreal SEC()
Definition graphvertex.h:240
void setEnabledEdgesByRelation(const int relation, const bool status)
Changes the status of all edges in the given relation.
Definition graphvertex.cpp:1175
bool isIsolated()
Returns true if the vertex is isolated (no inbound our outbound edges)
Definition graphvertex.cpp:869
void setSC(const qreal &c)
Definition graphvertex.h:232
void set_dispY(qreal y)
Sets the y coordinate of the displacement vector.
Definition graphvertex.cpp:406
qreal m_CLC
Definition graphvertex.h:313
qreal SBC()
Definition graphvertex.h:230
QHash< int, qreal > m_reciprocalEdges
Definition graphvertex.h:324
int m_curRelation
Definition graphvertex.h:310
qreal m_PRC
Definition graphvertex.h:316
void setSPRP(const qreal &c)
Definition graphvertex.h:258
const H_edges & outEdges() const
Definition graphvertex.h:161
H_IntToStr m_outEdgeLabels
Definition graphvertex.h:328
QString label() const
Returns the vertex label.
Definition graphvertex.cpp:269
int outEdgesCount()
Computes and returns the number of active outbound arcs (outEdges) for the current relation.
Definition graphvertex.cpp:766
qreal m_Eccentricity
Definition graphvertex.h:313
void setSize(const int &size)
Sets the size of the vertex.
Definition graphvertex.cpp:145
qreal m_SEC
Definition graphvertex.h:314
int inEdgesCountConst() const
Returns the number of active inbound arcs.
Definition graphvertex.cpp:833
void setSBC(const qreal &c)
Definition graphvertex.h:228
QString outLinkColor(const int &v2)
Returns the color of the outbound edge to the given vertex.
Definition graphvertex.cpp:588
void signalSetEdgeVisibility(const int &relation, const int &name, const int &target, const bool &visible, const bool &preserveReverseEdge=false, const int &edgeWeight=1, const int &reverseEdgeWeight=1)
qreal m_distanceSum
Definition graphvertex.h:318
int m_outEdgesCounter
Definition graphvertex.h:307
qreal m_SBC
Definition graphvertex.h:315
qreal distance(const int &v1)
Returns the geodesic distance to vertex v1.
Definition graphvertex.cpp:1224
int outDegreeConst()
Returns the outDegree. Avoid using it alone.
Definition graphvertex.cpp:1064
qreal SPC()
Definition graphvertex.h:245
void removeInEdge(const int source)
Removes the inbound edge from vertex v2.
Definition graphvertex.cpp:666
int labelDistance() const
Returns the distance (in pixels) of the label from the vertex.
Definition graphvertex.cpp:317
qreal SEVC()
Definition graphvertex.h:274
bool isEnabled() const
Returns true if the vertex is enabled.
Definition graphvertex.cpp:137
int numberDistance() const
Returns the distance (in pixels) of the vertex number from the vertex.
Definition graphvertex.cpp:253
qreal y() const
Returns the vertical position (in pixels) of the vertex.
Definition graphvertex.cpp:373
QPointF pos() const
Returns the point where the vertex is positioned.
Definition graphvertex.cpp:391
int inEdgesNonSym()
Definition graphvertex.h:208
void setEnabledUnilateralEdges(const bool &status=false)
Changes the status of all unilateral (non-reciprocal) outbound edges, in current relation.
Definition graphvertex.cpp:1149
int cliques(const int &ofSize)
Returns the number of cliques sized size this vertex belongs to.
Definition graphvertex.cpp:1374
QHash< QString, QString > m_customAttributes
Definition graphvertex.h:323
qreal SDP()
Definition graphvertex.h:255
H_shortestPaths m_shortestPaths
Definition graphvertex.h:291
QString color() const
Returns the vertex color.
Definition graphvertex.cpp:195
~GraphVertex()
Definition graphvertex.cpp:1391
void setCC(const qreal &c)
Definition graphvertex.h:217
void addInEdge(const int &v1, const qreal &weight)
Adds an inbound edge from vertex v1.
Definition graphvertex.cpp:617
void setPRP(const qreal &c)
Definition graphvertex.h:257
int outEdgesReciprocated()
Definition graphvertex.h:202
void setSIC(const qreal &c)
Definition graphvertex.h:248
qreal m_SC
Definition graphvertex.h:315
void reserveShortestPaths(const int &N)
Reserves N items for the ShortestPaths hash.
Definition graphvertex.cpp:1294
qreal PC()
Definition graphvertex.h:244
void setColor(const QString &color)
Sets the vertex color.
Definition graphvertex.cpp:187
void setOutLinkColor(const int &v2, const QString &color)
Sets the color of the outbound edge to the given vertex.
Definition graphvertex.cpp:578
void setDistance(const int &v1, const qreal &d)
Stores the geodesic distance to vertex v1.
Definition graphvertex.cpp:1201
int m_labelSize
Definition graphvertex.h:309
H_edges m_inEdges
Definition graphvertex.h:284
qreal m_EVC
Definition graphvertex.h:317
qreal m_DC
Definition graphvertex.h:315
int m_number
Definition graphvertex.h:307
void setIRCC(const qreal &c)
Definition graphvertex.h:222
qreal CLC()
Definition graphvertex.h:267
void setOutEdgesNonSym(int outEdgesNonSym=-1)
Definition graphvertex.h:204
QHash< int, qreal > outEdgesEnabledHash(const bool &allRelations=false)
Returns a qhash of all enabled outEdges, in the active relation or all relations if allRelations is t...
Definition graphvertex.cpp:882
qreal SSC()
Definition graphvertex.h:235
bool isOutLinked()
Returns true if the vertex has at least one outEdge.
Definition graphvertex.cpp:842
void clearCliques()
Definition graphvertex.h:281
void setX(const qreal &x)
Sets the horizontal position (in pixels) of the vertex.
Definition graphvertex.cpp:349
qreal SIRCC()
Definition graphvertex.h:225
int degreeOut()
Returns the outDegree (the sum of all enabled outEdges weights) of this vertex.
Definition graphvertex.cpp:1038
void setPos(QPointF &p)
Sets the point where the vertex is positioned.
Definition graphvertex.cpp:381
void setShape(const QString &shape, const QString &iconPath=QString())
Sets the shape of the vertex.
Definition graphvertex.cpp:162
QString m_label
Definition graphvertex.h:320
int localDegree()
Returns the localDegree of the vertex.
Definition graphvertex.cpp:1115
bool m_hasCLC
Definition graphvertex.h:311
QString shapeIconPath()
Returns the path of the custom vertex icon.
Definition graphvertex.cpp:179
int number() const
Returns the vertex number.
Definition graphvertex.cpp:113
qreal m_IRCC
Definition graphvertex.h:315
qreal m_SIC
Definition graphvertex.h:316
void setDP(const qreal &c)
Definition graphvertex.h:252
QString m_numberColor
Definition graphvertex.h:320
int degreeIn()
Returns the indegree (the sum of all enabled inEdges weights) of this vertex.
Definition graphvertex.cpp:1074
qreal distanceSum()
Definition graphvertex.h:216
qreal m_PP
Definition graphvertex.h:317
QString m_iconPath
Definition graphvertex.h:320
qreal DC()
Definition graphvertex.h:212
QHash< QString, QString > customAttributes() const
Returns the custom attributes of the graph vertex.
Definition graphvertex.cpp:339
void setCustomAttributes(QHash< QString, QString > customAttributes)
Sets custom attributes for the graph vertex.
Definition graphvertex.cpp:328
int m_outEdgesNonSym
Definition graphvertex.h:308
bool m_isolated
Definition graphvertex.h:311
const H_edges & inEdges() const
Definition graphvertex.h:165
int m_numberSize
Definition graphvertex.h:309
qreal PRP()
Definition graphvertex.h:259
void setLabelColor(const QString &labelColor)
Sets the color of the vertex label.
Definition graphvertex.cpp:277
qreal PP()
Definition graphvertex.h:264
int m_inDegree
Definition graphvertex.h:307
qreal EVC()
Definition graphvertex.h:273
int outEdgesCountConst() const
Returns the number of active outbound arcs. Avoid using it alone.
Definition graphvertex.cpp:796
qreal m_SCC
Definition graphvertex.h:315
int m_localDegree
Definition graphvertex.h:307
qreal SCC()
Definition graphvertex.h:220
qreal IC()
Definition graphvertex.h:249
void setDC(const qreal &c)
Definition graphvertex.h:210
int m_size
Definition graphvertex.h:309
void setPP(const qreal &c)
Definition graphvertex.h:262
qreal eccentricity()
Returns the stored eccentricity of the vertex.
Definition graphvertex.cpp:1319
bool m_enabled
Definition graphvertex.h:311
void setBC(const qreal &c)
Definition graphvertex.h:227
void setOutEdgesReciprocated(int outEdgesSym=-1)
Definition graphvertex.h:201
int outEdgesNonSym()
Definition graphvertex.h:205
void clearShortestPaths()
Removes all items from m_shortestPaths hash dictionary.
Definition graphvertex.cpp:1302
int m_numberDistance
Definition graphvertex.h:309
int shortestPaths(const int &v1)
Returns the stored number of shortest paths to vertex v1.
Definition graphvertex.cpp:1270
qreal hasEdgeFrom(const int &v, const bool &allRelations=false)
Checks if the vertex has an enabled inbound edge from v2 and returns the edge weight or 0.
Definition graphvertex.cpp:634
qreal SPP()
Definition graphvertex.h:265
qreal x() const
Returns the horizontal position (in pixels) of the vertex.
Definition graphvertex.cpp:357
void setSSC(const qreal &c)
Definition graphvertex.h:233
qreal m_CC
Definition graphvertex.h:315
qreal SC()
Definition graphvertex.h:234
void reserveDistance(const int &N)
Reserves N items for the distance hash. See QHash Algorithmic Complexity Not to be used on large nets...
Definition graphvertex.cpp:1211
bool hasCLC()
Definition graphvertex.h:269
Graph * m_graph
Definition graphvertex.h:306
The Graph class This is the main class for a Graph, used in conjuction with GraphVertex,...
Definition graph.h:72
QList< int > L_int
Definition graph.h:59
QHash< int, QString > H_IntToStr
Definition graphvertex.h:37
QPair< int, int > pair_i_i
Definition graphvertex.h:47
QList< int > L_int
Definition graphvertex.h:35
QHash< int, pair_i_i > H_shortestPaths
Definition graphvertex.h:48
QHash< int, pair_i_f > H_distance
Definition graphvertex.h:45
QPair< int, qreal > pair_i_f
Definition graphvertex.h:44
QMultiHash< int, pair_i_fb > H_edges
Definition graphvertex.h:42
QPair< qreal, bool > pair_f_b
Definition graphvertex.h:40
QHash< QString, int > H_StrToInt
Definition graphvertex.h:38
QPair< int, pair_f_b > pair_i_fb
Definition graphvertex.h:41