#include <graphvertex.h>


Signals | |
void | setEdgeVisibility (const int &relation, const int &name, const int &target, const bool &visible) |
Public Member Functions | |
GraphVertex (Graph *parentGraph, const int &name, const int &val, const int &relation, const int &size, const QString &color, const QString &numColor, const int &numSize, const QString &label, const QString &labelColor, const int &labelSize, const QPointF &p, const QString &shape, const QString &iconPath) | |
GraphVertex (const int &name) | |
constructor with default values More... | |
~GraphVertex () | |
int | name () const |
void | setName (const int &name) |
void | setEnabled (const bool &flag) |
bool | isEnabled () const |
void | relationSet (int newRel) |
Changes the current relation of this vertex to newRel. More... | |
void | edgeAddTo (const int &v2, const qreal &weight, const QString &color=QString(), const QString &label=QString()) |
Adds an outbound edge to vertex v2 with weight w. More... | |
void | edgeAddFrom (const int &v1, const qreal &weight) |
Adds an inbound edge from vertex v1. More... | |
void | changeOutEdgeWeight (const int &target, const qreal &weight) |
void | setOutEdgeEnabled (const int, bool) |
GraphVertex::setOutEdgeEnabled. More... | |
void | edgeRemoveTo (const int target) |
Removes outbound edge to vertex v2. More... | |
void | edgeRemoveFrom (const int source) |
Removes the inbound edge from vertex v2. More... | |
QHash< int, qreal > | outEdgesEnabledHash (const bool &allRelations=false) |
Returns a qhash of all enabled outEdges in the active relation. More... | |
QHash< int, qreal > * | outEdgesAllRelationsUniqueHash () |
Returns a qhash of all edges to neighbors in all relations. More... | |
QHash< int, qreal > * | inEdgesEnabledHash () |
Returns a qhash of all enabled inEdges in the active relation. More... | |
QHash< int, qreal > | reciprocalEdgesHash () |
Returns a qhash of all reciprocal edges to neighbors in the active relation. More... | |
QList< int > | neighborhoodList () |
Returns a list of all neighbors mutually connected to this vertex in the active relation. The returned list does not include the vertex itself, even if it self-connected. Same as calling GraphVertex::reciprocalEdgesHash().keys() which returns a QList of int keys, where each key is a vertex reciprocally connected to this one. More... | |
int | outEdges () |
Returns the number of active outbound arcs, aka the number of outEdges, from this vertex for the current relation. More... | |
int | outEdgesConst () const |
Returns the number of active outbound arcs Needs to have outEdges called before the call to this method. More... | |
int | inEdges () |
Returns the number of active inbound arcs, aka the number of inEdges, to this vertex for the current relation. More... | |
int | inEdgesConst () const |
Returns the number of active inbound arcs Needs to have inEdges called before the call to this method. More... | |
int | degreeOut () |
Returns the degreeOut (the sum of all enabled outEdges weights) of this vertex. More... | |
int | outDegreeConst () |
int | degreeIn () |
Returns the degreeIn (the sum of all enabled inEdges weights) of this vertex. More... | |
int | inDegreeConst () |
int | localDegree () |
qreal | distance (const int &v1) |
Returns geodesic distance to vertex v1 If d to v1 has not been set previously, then return RAND_MAX. More... | |
void | setDistance (const int &v1, const qreal &d) |
Sets distance to vertex v1 to dist. More... | |
void | reserveDistance (const int &N) |
Reserves N items for the distance hash. See QHash Algorithmic Complexity. More... | |
void | clearDistance () |
Removes all items from m_distance hash dictionary. More... | |
int | shortestPaths (const int &v1) |
Returns number of shortest paths to vertex v1 If it has not been set previously, then return 0. More... | |
void | setShortestPaths (const int &v1, const int &sp) |
Sets shortest paths to vertex v1 to sp. More... | |
void | reserveShortestPaths (const int &N) |
Reserves N items for the ShortestPaths hash. See QHash Algorithmic Complexity Not to be used on large nets, atm. More... | |
void | clearShortestPaths () |
Removes all items from m_shortestPaths hash dictionary. More... | |
void | setEccentricity (const qreal &c) |
qreal | eccentricity () |
bool | isOutLinked () |
qreal | hasEdgeTo (const int &v, const bool &allRelations=false) |
GraphVertex::hasEdgeTo Checks if this vertex is outlinked to v2 and returns the weight of the edge only if the outbound edge is enabled. More... | |
bool | isInLinked () |
qreal | hasEdgeFrom (const int &v, const bool &allRelations=false) |
GraphVertex::hasEdgeFrom Checks if this vertex is inLinked from v2 and returns the weight of the link only if the inLink is enabled. More... | |
bool | isIsolated () |
void | setIsolated (bool isolated) |
void | edgeFilterByWeight (qreal m_threshold, bool overThreshold) |
Filters out edges over or under a specified weight (m_threshold) More... | |
void | edgeFilterByRelation (int relation, bool status) |
Filters out all edges of a given relation. More... | |
void | edgeFilterUnilateral (const bool &toggle=false) |
Filters out unilateral (non-reciprocal) edges If allRelations is true, then all relations are checked. More... | |
void | setSize (const int &size) |
int | size () const |
void | setShape (const QString &shape, const QString &iconPath=QString()) |
QString | shape () const |
QString | shapeIconPath () |
void | setColor (const QString &color) |
QString | color () const |
QString | colorToPajek () |
returns the vertex color to pajek format More... | |
void | setNumberColor (const QString &color) |
QString | numberColor () const |
void | setNumberSize (const int &size) |
int | numberSize () const |
void | setNumberDistance (const int &distance) |
int | numberDistance () const |
void | setLabel (const QString &label) |
QString | label () const |
void | setLabelColor (const QString &labelColor) |
QString | labelColor () const |
void | setLabelSize (const int &size) |
int | labelSize () const |
void | setLabelDistance (const int &distance) |
int | labelDistance () const |
void | setX (const qreal &x) |
qreal | x () const |
void | setY (const qreal &y) |
qreal | y () const |
QPointF | pos () const |
void | setPos (QPointF &p) |
QPointF & | disp () |
void | set_dispX (qreal x) |
void | set_dispY (qreal y) |
void | setOutLinkColor (const int &v2, const QString &color) |
QString | outLinkColor (const int &v2) |
void | setOutEdgeLabel (const int &v2, const QString &label) |
QString | outEdgeLabel (const int &v2) const |
void | setDelta (const qreal &c) |
qreal | delta () |
void | clearPs () |
GraphVertex::clearPs. More... | |
void | appendToPs (const int &vertex) |
L_int | Ps (void) |
void | setOutEdgesReciprocated (int outEdgesSym=-1) |
int | outEdgesReciprocated () |
void | setOutEdgesNonSym (int outEdgesNonSym=-1) |
int | outEdgesNonSym () |
void | setInEdgesNonSym (int inEdgesNonSym=-1) |
int | inEdgesNonSym () |
void | setDC (const qreal &c) |
void | setSDC (const qreal &c) |
qreal | DC () |
qreal | SDC () |
void | setDistanceSum (const qreal &c) |
qreal | distanceSum () |
void | setCC (const qreal &c) |
void | setSCC (const qreal &c) |
qreal | CC () |
qreal | SCC () |
void | setIRCC (const qreal &c) |
void | setSIRCC (const qreal &c) |
qreal | IRCC () |
qreal | SIRCC () |
void | setBC (const qreal &c) |
void | setSBC (const qreal &c) |
qreal | BC () |
qreal | SBC () |
void | setSC (const qreal &c) |
void | setSSC (const qreal &c) |
qreal | SC () |
qreal | SSC () |
void | setEC (const qreal &dist) |
void | setSEC (const qreal &c) |
qreal | EC () |
qreal | SEC () |
void | setPC (const qreal &c) |
void | setSPC (const qreal &c) |
qreal | PC () |
qreal | SPC () |
void | setIC (const qreal &c) |
void | setSIC (const qreal &c) |
qreal | IC () |
qreal | SIC () |
void | setDP (const qreal &c) |
void | setSDP (const qreal &c) |
qreal | DP () |
qreal | SDP () |
void | setPRP (const qreal &c) |
void | setSPRP (const qreal &c) |
qreal | PRP () |
qreal | SPRP () |
void | setPP (const qreal &c) |
void | setSPP (const qreal &c) |
qreal | PP () |
qreal | SPP () |
qreal | CLC () |
void | setCLC (const qreal &clucof) |
bool | hasCLC () |
void | setEVC (const qreal &c) |
void | setSEVC (const qreal &c) |
qreal | EVC () |
qreal | SEVC () |
int | cliques (const int &ofSize) |
GraphVertex::cliques Returns the number of cliques sized size this vertex belongs to. More... | |
void | cliqueAdd (const QList< int > &clique) |
GraphVertex::cliqueAdd. More... | |
void | clearCliques () |
Public Attributes | |
H_edges | m_outEdges |
H_edges | m_inEdges |
H_distance | m_distance |
H_shortestPaths | m_shortestPaths |
Constructor & Destructor Documentation
◆ GraphVertex() [1/2]
GraphVertex::GraphVertex | ( | Graph * | parentGraph, |
const int & | name, | ||
const int & | val, | ||
const int & | relation, | ||
const int & | size, | ||
const QString & | color, | ||
const QString & | numColor, | ||
const int & | numSize, | ||
const QString & | label, | ||
const QString & | labelColor, | ||
const int & | labelSize, | ||
const QPointF & | p, | ||
const QString & | shape, | ||
const QString & | iconPath | ||
) |
◆ GraphVertex() [2/2]
GraphVertex::GraphVertex | ( | const int & | name | ) |
constructor with default values
- Parameters
-
name
◆ ~GraphVertex()
GraphVertex::~GraphVertex | ( | ) |
Member Function Documentation
◆ appendToPs()
void GraphVertex::appendToPs | ( | const int & | vertex | ) |
◆ BC()
|
inline |
◆ CC()
|
inline |
◆ changeOutEdgeWeight()
void GraphVertex::changeOutEdgeWeight | ( | const int & | target, |
const qreal & | weight | ||
) |
◆ CLC()
|
inline |
◆ clearCliques()
|
inline |
◆ clearDistance()
void GraphVertex::clearDistance | ( | ) |
Removes all items from m_distance hash dictionary.
◆ clearPs()
void GraphVertex::clearPs | ( | ) |
◆ clearShortestPaths()
void GraphVertex::clearShortestPaths | ( | ) |
Removes all items from m_shortestPaths hash dictionary.
◆ cliqueAdd()
void GraphVertex::cliqueAdd | ( | const QList< int > & | clique | ) |
- Parameters
-
clique
◆ cliques()
int GraphVertex::cliques | ( | const int & | ofSize | ) |
GraphVertex::cliques Returns the number of cliques sized size this vertex belongs to.
- Parameters
-
size
- Returns
◆ color()
|
inline |
◆ colorToPajek()
QString GraphVertex::colorToPajek | ( | ) |
returns the vertex color to pajek format
- Returns
◆ DC()
|
inline |
◆ degreeIn()
int GraphVertex::degreeIn | ( | ) |
Returns the degreeIn (the sum of all enabled inEdges weights) of this vertex.
- Returns
- int
◆ degreeOut()
int GraphVertex::degreeOut | ( | ) |
Returns the degreeOut (the sum of all enabled outEdges weights) of this vertex.
- Returns
- int
◆ delta()
|
inline |
◆ disp()
|
inline |
◆ distance()
qreal GraphVertex::distance | ( | const int & | v1 | ) |
Returns geodesic distance to vertex v1 If d to v1 has not been set previously, then return RAND_MAX.
- Parameters
-
v1
◆ distanceSum()
|
inline |
◆ DP()
|
inline |
◆ EC()
|
inline |
◆ eccentricity()
|
inline |
◆ edgeAddFrom()
void GraphVertex::edgeAddFrom | ( | const int & | v1, |
const qreal & | weight | ||
) |
Adds an inbound edge from vertex v1.
- Parameters
-
source weight
◆ edgeAddTo()
void GraphVertex::edgeAddTo | ( | const int & | v2, |
const qreal & | weight, | ||
const QString & | color = QString() , |
||
const QString & | label = QString() |
||
) |
Adds an outbound edge to vertex v2 with weight w.
- Parameters
-
target weight
◆ edgeFilterByRelation()
void GraphVertex::edgeFilterByRelation | ( | int | relation, |
bool | status | ||
) |
Filters out all edges of a given relation.
- Parameters
-
relation
◆ edgeFilterByWeight()
void GraphVertex::edgeFilterByWeight | ( | qreal | m_threshold, |
bool | overThreshold | ||
) |
Filters out edges over or under a specified weight (m_threshold)
- Parameters
-
m_threshold overThreshold
◆ edgeFilterUnilateral()
void GraphVertex::edgeFilterUnilateral | ( | const bool & | toggle = false | ) |
Filters out unilateral (non-reciprocal) edges If allRelations is true, then all relations are checked.
- Parameters
-
toggle
◆ edgeRemoveFrom()
void GraphVertex::edgeRemoveFrom | ( | const int | v2 | ) |
Removes the inbound edge from vertex v2.
- Parameters
-
v2
◆ edgeRemoveTo()
void GraphVertex::edgeRemoveTo | ( | const int | v2 | ) |
Removes outbound edge to vertex v2.
- Parameters
-
v2
◆ EVC()
|
inline |
◆ hasCLC()
|
inline |
◆ hasEdgeFrom()
qreal GraphVertex::hasEdgeFrom | ( | const int & | v2, |
const bool & | allRelations = false |
||
) |
GraphVertex::hasEdgeFrom Checks if this vertex is inLinked from v2 and returns the weight of the link only if the inLink is enabled.
- Parameters
-
v2
- Returns
◆ hasEdgeTo()
qreal GraphVertex::hasEdgeTo | ( | const int & | v2, |
const bool & | allRelations = false |
||
) |
GraphVertex::hasEdgeTo Checks if this vertex is outlinked to v2 and returns the weight of the edge only if the outbound edge is enabled.
- Parameters
-
v2
- Returns
◆ IC()
|
inline |
◆ inDegreeConst()
int GraphVertex::inDegreeConst | ( | ) |
◆ inEdges()
int GraphVertex::inEdges | ( | ) |
Returns the number of active inbound arcs, aka the number of inEdges, to this vertex for the current relation.
- Returns
- int
◆ inEdgesConst()
int GraphVertex::inEdgesConst | ( | ) | const |
Returns the number of active inbound arcs Needs to have inEdges called before the call to this method.
- Returns
- int
◆ inEdgesEnabledHash()
QHash< int, qreal > * GraphVertex::inEdgesEnabledHash | ( | ) |
Returns a qhash of all enabled inEdges in the active relation.
- Returns
- QHash<int,qreal>*
◆ inEdgesNonSym()
|
inline |
◆ IRCC()
|
inline |
◆ isEnabled()
|
inline |
◆ isInLinked()
|
inline |
◆ isIsolated()
|
inline |
◆ isOutLinked()
|
inline |
◆ label()
|
inline |
◆ labelColor()
|
inline |
◆ labelDistance()
|
inline |
◆ labelSize()
|
inline |
◆ localDegree()
int GraphVertex::localDegree | ( | ) |
localDegree is the degreeOut + degreeIn minus the edges counted twice.
◆ name()
|
inline |
◆ neighborhoodList()
QList< int > GraphVertex::neighborhoodList | ( | ) |
Returns a list of all neighbors mutually connected to this vertex in the active relation. The returned list does not include the vertex itself, even if it self-connected. Same as calling GraphVertex::reciprocalEdgesHash().keys() which returns a QList of int keys, where each key is a vertex reciprocally connected to this one.
- Returns
- QList<int>
◆ numberColor()
|
inline |
◆ numberDistance()
|
inline |
◆ numberSize()
|
inline |
◆ outDegreeConst()
int GraphVertex::outDegreeConst | ( | ) |
◆ outEdgeLabel()
|
inline |
◆ outEdges()
int GraphVertex::outEdges | ( | ) |
Returns the number of active outbound arcs, aka the number of outEdges, from this vertex for the current relation.
- Returns
- int
◆ outEdgesAllRelationsUniqueHash()
QHash< int, qreal > * GraphVertex::outEdgesAllRelationsUniqueHash | ( | ) |
Returns a qhash of all edges to neighbors in all relations.
- Returns
◆ outEdgesConst()
int GraphVertex::outEdgesConst | ( | ) | const |
Returns the number of active outbound arcs Needs to have outEdges called before the call to this method.
- Returns
- int
◆ outEdgesEnabledHash()
QHash< int, qreal > GraphVertex::outEdgesEnabledHash | ( | const bool & | allRelations = false | ) |
Returns a qhash of all enabled outEdges in the active relation.
- Returns
- QHash<int,qreal>*
◆ outEdgesNonSym()
|
inline |
◆ outEdgesReciprocated()
|
inline |
◆ outLinkColor()
|
inline |
◆ PC()
|
inline |
◆ pos()
|
inline |
◆ PP()
|
inline |
◆ PRP()
|
inline |
◆ Ps()
L_int GraphVertex::Ps | ( | void | ) |
◆ reciprocalEdgesHash()
QHash< int, qreal > GraphVertex::reciprocalEdgesHash | ( | ) |
Returns a qhash of all reciprocal edges to neighbors in the active relation.
- Returns
- QHash<int,qreal>*
◆ relationSet()
void GraphVertex::relationSet | ( | int | newRel | ) |
Changes the current relation of this vertex to newRel.
- Parameters
-
newRel
◆ reserveDistance()
void GraphVertex::reserveDistance | ( | const int & | N | ) |
Reserves N items for the distance hash. See QHash Algorithmic Complexity.
- Not to be used on large nets, atm.
- Parameters
-
N
◆ reserveShortestPaths()
void GraphVertex::reserveShortestPaths | ( | const int & | N | ) |
Reserves N items for the ShortestPaths hash. See QHash Algorithmic Complexity Not to be used on large nets, atm.
- Parameters
-
N
◆ SBC()
|
inline |
◆ SC()
|
inline |
◆ SCC()
|
inline |
◆ SDC()
|
inline |
◆ SDP()
|
inline |
◆ SEC()
|
inline |
◆ set_dispX()
|
inline |
◆ set_dispY()
|
inline |
◆ setBC()
|
inline |
◆ setCC()
|
inline |
◆ setCLC()
|
inline |
◆ setColor()
|
inline |
◆ setDC()
|
inline |
◆ setDelta()
|
inline |
◆ setDistance()
void GraphVertex::setDistance | ( | const int & | v1, |
const qreal & | d | ||
) |
Sets distance to vertex v1 to dist.
- Parameters
-
v1 dist
◆ setDistanceSum()
|
inline |
◆ setDP()
|
inline |
◆ setEC()
|
inline |
◆ setEccentricity()
|
inline |
◆ setEdgeVisibility
|
signal |
◆ setEnabled()
|
inline |
◆ setEVC()
|
inline |
◆ setIC()
|
inline |
◆ setInEdgesNonSym()
|
inline |
◆ setIRCC()
|
inline |
◆ setIsolated()
|
inline |
◆ setLabel()
|
inline |
◆ setLabelColor()
|
inline |
◆ setLabelDistance()
|
inline |
◆ setLabelSize()
|
inline |
◆ setName()
|
inline |
◆ setNumberColor()
|
inline |
◆ setNumberDistance()
|
inline |
◆ setNumberSize()
|
inline |
◆ setOutEdgeEnabled()
void GraphVertex::setOutEdgeEnabled | ( | const int | target, |
bool | status | ||
) |
GraphVertex::setOutEdgeEnabled.
- Parameters
-
target status
◆ setOutEdgeLabel()
|
inline |
◆ setOutEdgesNonSym()
|
inline |
◆ setOutEdgesReciprocated()
|
inline |
◆ setOutLinkColor()
|
inline |
◆ setPC()
|
inline |
◆ setPos()
|
inline |
◆ setPP()
|
inline |
◆ setPRP()
|
inline |
◆ setSBC()
|
inline |
◆ setSC()
|
inline |
◆ setSCC()
|
inline |
◆ setSDC()
|
inline |
◆ setSDP()
|
inline |
◆ setSEC()
|
inline |
◆ setSEVC()
|
inline |
◆ setShape()
|
inline |
◆ setShortestPaths()
void GraphVertex::setShortestPaths | ( | const int & | v1, |
const int & | sp | ||
) |
Sets shortest paths to vertex v1 to sp.
- Parameters
-
v1 sp
◆ setSIC()
|
inline |
◆ setSIRCC()
|
inline |
◆ setSize()
|
inline |
◆ setSPC()
|
inline |
◆ setSPP()
|
inline |
◆ setSPRP()
|
inline |
◆ setSSC()
|
inline |
◆ setX()
|
inline |
◆ setY()
|
inline |
◆ SEVC()
|
inline |
◆ shape()
|
inline |
◆ shapeIconPath()
|
inline |
◆ shortestPaths()
int GraphVertex::shortestPaths | ( | const int & | v1 | ) |
Returns number of shortest paths to vertex v1 If it has not been set previously, then return 0.
- Parameters
-
v1
◆ SIC()
|
inline |
◆ SIRCC()
|
inline |
◆ size()
|
inline |
◆ SPC()
|
inline |
◆ SPP()
|
inline |
◆ SPRP()
|
inline |
◆ SSC()
|
inline |
◆ x()
|
inline |
◆ y()
|
inline |
Member Data Documentation
◆ m_BC
|
private |
◆ m_CC
|
private |
◆ m_CLC
|
private |
◆ m_cliques
|
private |
◆ m_color
|
private |
◆ m_curRelation
|
private |
◆ m_DC
|
private |
◆ m_delta
|
private |
◆ m_disp
|
private |
◆ m_distance
H_distance GraphVertex::m_distance |
◆ m_distanceSum
|
private |
◆ m_DP
|
private |
◆ m_EC
|
private |
◆ m_Eccentricity
|
private |
◆ m_enabled
|
private |
◆ m_EVC
|
private |
◆ m_graph
|
private |
◆ m_hasCLC
|
private |
◆ m_IC
|
private |
◆ m_iconPath
|
private |
◆ m_inDegree
|
private |
◆ m_inEdges
H_edges GraphVertex::m_inEdges |
◆ m_inEdgesCounter
|
private |
◆ m_inEdgesNonSym
|
private |
◆ m_IRCC
|
private |
◆ m_isolated
|
private |
◆ m_label
|
private |
◆ m_labelColor
|
private |
◆ m_labelDistance
|
private |
◆ m_labelSize
|
private |
◆ m_localDegree
|
private |
◆ m_name
|
private |
◆ m_neighborhoodList
|
private |
◆ m_numberColor
|
private |
◆ m_numberDistance
|
private |
◆ m_numberSize
|
private |
◆ m_outDegree
|
private |
◆ m_outEdgeLabels
|
private |
◆ m_outEdges
H_edges GraphVertex::m_outEdges |
◆ m_outEdgesCounter
|
private |
◆ m_outEdgesNonSym
|
private |
◆ m_outEdgesSym
|
private |
◆ m_outLinkColors
|
private |
◆ m_PC
|
private |
◆ m_PP
|
private |
◆ m_PRC
|
private |
◆ m_reciprocalEdges
|
private |
◆ m_reciprocalLinked
|
private |
◆ m_SBC
|
private |
◆ m_SC
|
private |
◆ m_SCC
|
private |
◆ m_SDC
|
private |
◆ m_SDP
|
private |
◆ m_SEC
|
private |
◆ m_SEVC
|
private |
◆ m_shape
|
private |
◆ m_shortestPaths
H_shortestPaths GraphVertex::m_shortestPaths |
◆ m_SIC
|
private |
◆ m_SIRCC
|
private |
◆ m_size
|
private |
◆ m_SPC
|
private |
◆ m_SPP
|
private |
◆ m_SPRC
|
private |
◆ m_SSC
|
private |
◆ m_value
|
private |
◆ m_x
|
private |
◆ m_y
|
private |
◆ myPs
|
private |
The documentation for this class was generated from the following files:
- app/src/graphvertex.h
- app/src/graphvertex.cpp