#include <graphvertex.h>
Signals | |
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) |
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, const int &edgesEstimate=2000) | |
GraphVertex (const int &name) | |
constructor with default values More... | |
~GraphVertex () | |
int | number () const |
Returns the vertex number. More... | |
void | setNumber (const int &number) |
Sets the vertex number. More... | |
void | setEnabled (const bool &status) |
Toggles the status of the vertex. More... | |
bool | isEnabled () const |
Returns true if the vertex is enabled. More... | |
void | setSize (const int &size) |
Sets the size of the vertex. More... | |
int | size () const |
Returns the size of the vertex. More... | |
void | setShape (const QString &shape, const QString &iconPath=QString()) |
Sets the shape of the vertex. More... | |
QString | shape () const |
Returns the shape of the vertex. More... | |
QString | shapeIconPath () |
Returns the path of the vertex shape. More... | |
void | setColor (const QString &color) |
Sets the vertex color. More... | |
QString | color () const |
Returns the vertex color. More... | |
QString | colorToPajek () |
Returns the vertex color in pajek format. More... | |
void | setNumberColor (const QString &color) |
Sets the color of the vertex number. More... | |
QString | numberColor () const |
Returns the color of the vertex number. More... | |
void | setNumberSize (const int &size) |
Sets the size of the vertex number. More... | |
int | numberSize () const |
Returns the size of the vertex number. More... | |
void | setNumberDistance (const int &distance) |
Sets the distance (in pixels) of the vertex number from the vertex. More... | |
int | numberDistance () const |
Returns the distance (in pixels) of the vertex number from the vertex. More... | |
void | setLabel (const QString &label) |
Sets the label of the vertex. More... | |
QString | label () const |
Returns the vertex label. More... | |
void | setLabelColor (const QString &labelColor) |
Sets the color of the vertex label. More... | |
QString | labelColor () const |
Returns the color of the vertex label. More... | |
void | setLabelSize (const int &size) |
Sets the size of the vertex label. More... | |
int | labelSize () const |
Returns the size of the vertex label. More... | |
void | setLabelDistance (const int &distance) |
Sets the distance (in pixels) of the label from the vertex. More... | |
int | labelDistance () const |
Returns the distance (in pixels) of the label from the vertex. More... | |
void | setX (const qreal &x) |
Sets the horizontal position (in pixels) of the vertex. More... | |
qreal | x () const |
Returns the horizontal position (in pixels) of the vertex. More... | |
void | setY (const qreal &y) |
Sets the vertical position (in pixels) of the vertex. More... | |
qreal | y () const |
Returns the vertical position (in pixels) of the vertex. More... | |
void | setPos (QPointF &p) |
Sets the point where the vertex is positioned. More... | |
QPointF | pos () const |
Returns the point where the vertex is positioned. More... | |
void | set_dispX (qreal x) |
Sets the x coordinate of the displacement vector. More... | |
void | set_dispY (qreal y) |
Sets the y coordinate of the displacement vector. More... | |
QPointF & | disp () |
Returns displacement vector. More... | |
void | setRelation (int newRel) |
Changes the current relation of this vertex. More... | |
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. More... | |
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. More... | |
void | removeOutEdge (const int target) |
Removes the outbound edge to vertex v2. More... | |
void | setOutEdgeWeight (const int &target, const qreal &weight) |
Sets the weight of the outbound edge to the given vertex. More... | |
void | setOutEdgeEnabled (const int &target, bool) |
Sets the status of an outbound edge to the given target vertex. More... | |
void | setOutLinkColor (const int &v2, const QString &color) |
Sets the color of the outbound edge to the given vertex. More... | |
QString | outLinkColor (const int &v2) |
Returns the color of the outbound edge to the given vertex. More... | |
void | setOutEdgeLabel (const int &v2, const QString &label) |
Sets the label of the outbound edge to the given vertex. More... | |
QString | outEdgeLabel (const int &v2) const |
Returns the label of the outbound edge to the given vertex. More... | |
void | addInEdge (const int &v1, const qreal &weight) |
Adds an inbound edge from vertex v1. More... | |
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. More... | |
void | removeInEdge (const int source) |
Removes the inbound edge from vertex v2. More... | |
void | setInEdgeWeight (const int &source, const qreal &weight) |
Sets the weight of the inbound edge from the given vertex. More... | |
void | setInEdgeEnabled (const int &source, bool) |
Sets the status of an inbound edge from the given source vertex. More... | |
int | outEdgesCount () |
Computes and returns the number of active outbound arcs (outEdges) for the current relation. More... | |
int | outEdgesCountConst () const |
Returns the number of active outbound arcs. Avoid using it alone. More... | |
int | inEdgesCount () |
Returns the number of active inbound arcs to this vertex for the current relation. More... | |
int | inEdgesCountConst () const |
Returns the number of active inbound arcs. More... | |
bool | isOutLinked () |
Returns true if the vertex has at least one outEdge. More... | |
bool | isInLinked () |
Returns true if there is an outEdge from this vertex. More... | |
void | setIsolated (bool isolated) |
Toggles this vertex as isolated or not. More... | |
bool | isIsolated () |
Returns true if the vertex is isolated (no inbound our outbound edges) More... | |
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 true. 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. More... | |
int | degreeOut () |
Returns the outDegree (the sum of all enabled outEdges weights) of this vertex. More... | |
int | outDegreeConst () |
Returns the outDegree. Avoid using it alone. More... | |
int | degreeIn () |
Returns the indegree (the sum of all enabled inEdges weights) of this vertex. More... | |
int | inDegreeConst () |
Returns the indegree. Avoid using it alone. More... | |
int | localDegree () |
Returns the localDegree of the vertex. More... | |
void | setEnabledEdgesByRelation (const int relation, const bool status) |
Changes the status of all edges in the given relation. More... | |
void | setEnabledUnilateralEdges (const bool &status=false) |
Changes the status of all unilateral (non-reciprocal) outbound edges, in current relation. More... | |
qreal | distance (const int &v1) |
Returns the geodesic distance to vertex v1. More... | |
void | setDistance (const int &v1, const qreal &d) |
Stores the geodesic distance to vertex v1. More... | |
void | reserveDistance (const int &N) |
Reserves N items for the distance hash. See QHash Algorithmic Complexity Not to be used on large nets, atm. More... | |
void | clearDistance () |
Removes all items from m_distance hash dictionary. More... | |
int | shortestPaths (const int &v1) |
Returns the stored number of shortest paths to vertex v1. More... | |
void | setShortestPaths (const int &v1, const int &sp) |
Stores the number of shortest paths from this vertex to vertex v1. More... | |
void | reserveShortestPaths (const int &N) |
Reserves N items for the ShortestPaths hash. More... | |
void | clearShortestPaths () |
Removes all items from m_shortestPaths hash dictionary. More... | |
void | setEccentricity (const qreal &c) |
Stores the eccentricity of the vertex. More... | |
qreal | eccentricity () |
Returns the stored eccentricity of the vertex. More... | |
void | setDelta (const qreal &c) |
Stores the pair dependency of the vertex. More... | |
qreal | delta () |
Returns the stored pair dependency of the vertex. More... | |
void | clearPs () |
Clears the list of predecessors of this vertex. More... | |
void | appendToPs (const int &vertex) |
Appends a vertex to the list of predecessors of this vertex. More... | |
L_int | Ps (void) |
Returns the list of predecessors of this vertex. More... | |
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) |
Returns the number of cliques sized size this vertex belongs to. More... | |
void | cliqueAdd (const QList< int > &clique) |
Adds clique to my cliques. 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, | ||
const int & | edgesEstimate = 2000 |
||
) |
◆ GraphVertex() [2/2]
GraphVertex::GraphVertex | ( | const int & | name | ) |
constructor with default values
- Parameters
-
name
◆ ~GraphVertex()
GraphVertex::~GraphVertex | ( | ) |
Member Function Documentation
◆ addInEdge()
void GraphVertex::addInEdge | ( | const int & | v1, |
const qreal & | weight | ||
) |
Adds an inbound edge from vertex v1.
- Parameters
-
source weight
◆ addOutEdge()
void GraphVertex::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.
- Parameters
-
target weight
◆ appendToPs()
void GraphVertex::appendToPs | ( | const int & | vertex | ) |
Appends a vertex to the list of predecessors of this vertex.
- Parameters
-
vertex
◆ BC()
|
inline |
◆ CC()
|
inline |
◆ CLC()
|
inline |
◆ clearCliques()
|
inline |
◆ clearDistance()
void GraphVertex::clearDistance | ( | ) |
Removes all items from m_distance hash dictionary.
◆ clearPs()
void GraphVertex::clearPs | ( | ) |
Clears the list of predecessors of this vertex.
◆ clearShortestPaths()
void GraphVertex::clearShortestPaths | ( | ) |
Removes all items from m_shortestPaths hash dictionary.
◆ cliqueAdd()
void GraphVertex::cliqueAdd | ( | const QList< int > & | clique | ) |
Adds clique to my cliques.
- Parameters
-
clique
◆ cliques()
int GraphVertex::cliques | ( | const int & | ofSize | ) |
Returns the number of cliques sized size this vertex belongs to.
- Parameters
-
size
- Returns
◆ color()
QString GraphVertex::color | ( | ) | const |
Returns the vertex color.
- Returns
- QString
◆ colorToPajek()
QString GraphVertex::colorToPajek | ( | ) |
Returns the vertex color in pajek format.
◆ DC()
|
inline |
◆ degreeIn()
int GraphVertex::degreeIn | ( | ) |
Returns the indegree (the sum of all enabled inEdges weights) of this vertex.
- Returns
- int
◆ degreeOut()
int GraphVertex::degreeOut | ( | ) |
Returns the outDegree (the sum of all enabled outEdges weights) of this vertex.
- Returns
- int
◆ delta()
qreal GraphVertex::delta | ( | ) |
Returns the stored pair dependency of the vertex.
- Returns
◆ disp()
QPointF & GraphVertex::disp | ( | ) |
Returns displacement vector.
- Returns
◆ distance()
qreal GraphVertex::distance | ( | const int & | v1 | ) |
Returns the geodesic distance to vertex v1.
If d to v1 has not been set previously, returns RAND_MAX
- Parameters
-
v1
◆ distanceSum()
|
inline |
◆ DP()
|
inline |
◆ EC()
|
inline |
◆ eccentricity()
qreal GraphVertex::eccentricity | ( | ) |
Returns the stored eccentricity of the vertex.
- Returns
◆ EVC()
|
inline |
◆ hasCLC()
|
inline |
◆ hasEdgeFrom()
qreal GraphVertex::hasEdgeFrom | ( | const int & | v2, |
const bool & | allRelations = false |
||
) |
Checks if the vertex has an enabled inbound edge from v2 and returns the edge weight or 0.
If allRelations is true, then all relations are checked
- Parameters
-
v2
- Returns
◆ hasEdgeTo()
qreal GraphVertex::hasEdgeTo | ( | const int & | v2, |
const bool & | allRelations = false |
||
) |
Checks if the vertex has an enabled outbound edge to the given vertex. Returns the edge weight or 0.
If allRelations is true, then all relations are checked
- Parameters
-
v2 allRelations
- Returns
- qreal
◆ IC()
|
inline |
◆ inDegreeConst()
int GraphVertex::inDegreeConst | ( | ) |
Returns the indegree. Avoid using it alone.
- Returns
- int
◆ inEdgesCount()
int GraphVertex::inEdgesCount | ( | ) |
Returns the number of active inbound arcs to this vertex for the current relation.
- Returns
- int
◆ inEdgesCountConst()
int GraphVertex::inEdgesCountConst | ( | ) | const |
Returns the number of active inbound arcs.
WARNING: 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()
bool GraphVertex::isEnabled | ( | ) | const |
Returns true if the vertex is enabled.
- Returns
- bool
◆ isInLinked()
bool GraphVertex::isInLinked | ( | ) |
Returns true if there is an outEdge from this vertex.
- Returns
◆ isIsolated()
bool GraphVertex::isIsolated | ( | ) |
Returns true if the vertex is isolated (no inbound our outbound edges)
- Returns
- bool
◆ isOutLinked()
bool GraphVertex::isOutLinked | ( | ) |
Returns true if the vertex has at least one outEdge.
- Returns
- bool
◆ label()
QString GraphVertex::label | ( | ) | const |
Returns the vertex label.
- Returns
◆ labelColor()
QString GraphVertex::labelColor | ( | ) | const |
Returns the color of the vertex label.
- Returns
◆ labelDistance()
int GraphVertex::labelDistance | ( | ) | const |
Returns the distance (in pixels) of the label from the vertex.
- Returns
◆ labelSize()
int GraphVertex::labelSize | ( | ) | const |
Returns the size of the vertex label.
- Returns
◆ localDegree()
int GraphVertex::localDegree | ( | ) |
Returns the localDegree of the vertex.
The localDegree is the degreeOut + degreeIn minus the edges counted twice.
- Returns
◆ 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>
◆ number()
int GraphVertex::number | ( | ) | const |
Returns the vertex number.
- Returns
◆ numberColor()
QString GraphVertex::numberColor | ( | ) | const |
Returns the color of the vertex number.
- Returns
◆ numberDistance()
int GraphVertex::numberDistance | ( | ) | const |
Returns the distance (in pixels) of the vertex number from the vertex.
- Returns
◆ numberSize()
int GraphVertex::numberSize | ( | ) | const |
Returns the size of the vertex number.
- Returns
◆ outDegreeConst()
int GraphVertex::outDegreeConst | ( | ) |
Returns the outDegree. Avoid using it alone.
- Returns
- int
◆ outEdgeLabel()
QString GraphVertex::outEdgeLabel | ( | const int & | v2 | ) | const |
Returns the label of the outbound edge to the given vertex.
- Parameters
-
v2
- Returns
◆ outEdgesAllRelationsUniqueHash()
QHash< int, qreal > * GraphVertex::outEdgesAllRelationsUniqueHash | ( | ) |
Returns a qhash of all edges to neighbors in all relations.
- Returns
◆ outEdgesCount()
int GraphVertex::outEdgesCount | ( | ) |
Computes and returns the number of active outbound arcs (outEdges) for the current relation.
- Returns
- int
◆ outEdgesCountConst()
int GraphVertex::outEdgesCountConst | ( | ) | const |
Returns the number of active outbound arcs. Avoid using it alone.
WARNING: You need to compute m_outEdgesCounter before calling 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 or all relations if allRelations is true.
- Parameters
-
allRelations
- Returns
- QHash<int,qreal>*
◆ outEdgesNonSym()
|
inline |
◆ outEdgesReciprocated()
|
inline |
◆ outLinkColor()
QString GraphVertex::outLinkColor | ( | const int & | v2 | ) |
Returns the color of the outbound edge to the given vertex.
- Parameters
-
v2
- Returns
◆ PC()
|
inline |
◆ pos()
QPointF GraphVertex::pos | ( | ) | const |
Returns the point where the vertex is positioned.
- Returns
◆ PP()
|
inline |
◆ PRP()
|
inline |
◆ Ps()
L_int GraphVertex::Ps | ( | void | ) |
Returns the list of predecessors of this vertex.
- Returns
◆ reciprocalEdgesHash()
QHash< int, qreal > GraphVertex::reciprocalEdgesHash | ( | ) |
Returns a qhash of all reciprocal edges to neighbors in the active relation.
- Returns
- QHash<int,qreal>*
◆ removeInEdge()
void GraphVertex::removeInEdge | ( | const int | v2 | ) |
Removes the inbound edge from vertex v2.
- Parameters
-
v2
◆ removeOutEdge()
void GraphVertex::removeOutEdge | ( | const int | v2 | ) |
Removes the outbound edge to vertex v2.
- Parameters
-
v2
◆ 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 Complexit. Not to be used on large nets, atm.
- Parameters
-
N
◆ SBC()
|
inline |
◆ SC()
|
inline |
◆ SCC()
|
inline |
◆ SDC()
|
inline |
◆ SDP()
|
inline |
◆ SEC()
|
inline |
◆ set_dispX()
void GraphVertex::set_dispX | ( | qreal | x | ) |
Sets the x coordinate of the displacement vector.
- Parameters
-
x
◆ set_dispY()
void GraphVertex::set_dispY | ( | qreal | y | ) |
Sets the y coordinate of the displacement vector.
- Parameters
-
y
◆ setBC()
|
inline |
◆ setCC()
|
inline |
◆ setCLC()
|
inline |
◆ setColor()
void GraphVertex::setColor | ( | const QString & | color | ) |
Sets the vertex color.
- Parameters
-
color
◆ setDC()
|
inline |
◆ setDelta()
void GraphVertex::setDelta | ( | const qreal & | c | ) |
Stores the pair dependency of the vertex.
- Parameters
-
c
◆ setDistance()
void GraphVertex::setDistance | ( | const int & | v1, |
const qreal & | d | ||
) |
Stores the geodesic distance to vertex v1.
- Parameters
-
v1 dist
◆ setDistanceSum()
|
inline |
◆ setDP()
|
inline |
◆ setEC()
|
inline |
◆ setEccentricity()
void GraphVertex::setEccentricity | ( | const qreal & | c | ) |
Stores the eccentricity of the vertex.
- Parameters
-
c
◆ setEnabled()
void GraphVertex::setEnabled | ( | const bool & | status | ) |
Toggles the status of the vertex.
- Parameters
-
flag
◆ setEnabledEdgesByRelation()
void GraphVertex::setEnabledEdgesByRelation | ( | const int | relation, |
const bool | status | ||
) |
Changes the status of all edges in the given relation.
- Parameters
-
relation status
◆ setEnabledUnilateralEdges()
void GraphVertex::setEnabledUnilateralEdges | ( | const bool & | status = false | ) |
Changes the status of all unilateral (non-reciprocal) outbound edges, in current relation.
- Parameters
-
status
◆ setEVC()
|
inline |
◆ setIC()
|
inline |
◆ setInEdgeEnabled()
void GraphVertex::setInEdgeEnabled | ( | const int & | source, |
bool | status | ||
) |
Sets the status of an inbound edge from the given source vertex.
- Parameters
-
source status
◆ setInEdgesNonSym()
|
inline |
◆ setInEdgeWeight()
void GraphVertex::setInEdgeWeight | ( | const int & | source, |
const qreal & | weight | ||
) |
Sets the weight of the inbound edge from the given vertex.
- Parameters
-
source weight
◆ setIRCC()
|
inline |
◆ setIsolated()
void GraphVertex::setIsolated | ( | bool | isolated | ) |
Toggles this vertex as isolated or not.
- Parameters
-
isolated
◆ setLabel()
void GraphVertex::setLabel | ( | const QString & | label | ) |
Sets the label of the vertex.
- Parameters
-
label
◆ setLabelColor()
void GraphVertex::setLabelColor | ( | const QString & | labelColor | ) |
Sets the color of the vertex label.
- Parameters
-
labelColor
◆ setLabelDistance()
void GraphVertex::setLabelDistance | ( | const int & | distance | ) |
Sets the distance (in pixels) of the label from the vertex.
- Parameters
-
distance
◆ setLabelSize()
void GraphVertex::setLabelSize | ( | const int & | size | ) |
Sets the size of the vertex label.
- Parameters
-
size
◆ setNumber()
void GraphVertex::setNumber | ( | const int & | number | ) |
Sets the vertex number.
- Parameters
-
number
◆ setNumberColor()
void GraphVertex::setNumberColor | ( | const QString & | color | ) |
Sets the color of the vertex number.
- Parameters
-
color
◆ setNumberDistance()
void GraphVertex::setNumberDistance | ( | const int & | distance | ) |
Sets the distance (in pixels) of the vertex number from the vertex.
- Parameters
-
distance
◆ setNumberSize()
void GraphVertex::setNumberSize | ( | const int & | size | ) |
Sets the size of the vertex number.
- Parameters
-
size
◆ setOutEdgeEnabled()
void GraphVertex::setOutEdgeEnabled | ( | const int & | target, |
bool | status | ||
) |
Sets the status of an outbound edge to the given target vertex.
- Parameters
-
target status
◆ setOutEdgeLabel()
void GraphVertex::setOutEdgeLabel | ( | const int & | v2, |
const QString & | label | ||
) |
Sets the label of the outbound edge to the given vertex.
- Parameters
-
v2 label
◆ setOutEdgesNonSym()
|
inline |
◆ setOutEdgesReciprocated()
|
inline |
◆ setOutEdgeWeight()
void GraphVertex::setOutEdgeWeight | ( | const int & | target, |
const qreal & | weight | ||
) |
Sets the weight of the outbound edge to the given vertex.
- Parameters
-
target weight
◆ setOutLinkColor()
void GraphVertex::setOutLinkColor | ( | const int & | v2, |
const QString & | color | ||
) |
Sets the color of the outbound edge to the given vertex.
- Parameters
-
v2 color
◆ setPC()
|
inline |
◆ setPos()
void GraphVertex::setPos | ( | QPointF & | p | ) |
Sets the point where the vertex is positioned.
- Parameters
-
p
◆ setPP()
|
inline |
◆ setPRP()
|
inline |
◆ setRelation()
void GraphVertex::setRelation | ( | int | newRel | ) |
Changes the current relation of this vertex.
- Parameters
-
newRel
◆ setSBC()
|
inline |
◆ setSC()
|
inline |
◆ setSCC()
|
inline |
◆ setSDC()
|
inline |
◆ setSDP()
|
inline |
◆ setSEC()
|
inline |
◆ setSEVC()
|
inline |
◆ setShape()
void GraphVertex::setShape | ( | const QString & | shape, |
const QString & | iconPath = QString() |
||
) |
Sets the shape of the vertex.
- Parameters
-
shape iconPath
◆ setShortestPaths()
void GraphVertex::setShortestPaths | ( | const int & | v1, |
const int & | sp | ||
) |
Stores the number of shortest paths from this vertex to vertex v1.
- Parameters
-
v1 sp
◆ setSIC()
|
inline |
◆ setSIRCC()
|
inline |
◆ setSize()
void GraphVertex::setSize | ( | const int & | size | ) |
Sets the size of the vertex.
- Parameters
-
size
◆ setSPC()
|
inline |
◆ setSPP()
|
inline |
◆ setSPRP()
|
inline |
◆ setSSC()
|
inline |
◆ setX()
void GraphVertex::setX | ( | const qreal & | x | ) |
Sets the horizontal position (in pixels) of the vertex.
- Parameters
-
x
◆ setY()
void GraphVertex::setY | ( | const qreal & | y | ) |
Sets the vertical position (in pixels) of the vertex.
- Parameters
-
y
◆ SEVC()
|
inline |
◆ shape()
QString GraphVertex::shape | ( | ) | const |
Returns the shape of the vertex.
- Returns
◆ shapeIconPath()
QString GraphVertex::shapeIconPath | ( | ) |
Returns the path of the vertex shape.
- Returns
◆ shortestPaths()
int GraphVertex::shortestPaths | ( | const int & | v1 | ) |
Returns the stored number of shortest paths to vertex v1.
If it has not been set previously, then returns 0
- Parameters
-
v1
◆ SIC()
|
inline |
◆ signalSetEdgeVisibility
|
signal |
◆ SIRCC()
|
inline |
◆ size()
int GraphVertex::size | ( | ) | const |
Returns the size of the vertex.
- Returns
◆ SPC()
|
inline |
◆ SPP()
|
inline |
◆ SPRP()
|
inline |
◆ SSC()
|
inline |
◆ x()
qreal GraphVertex::x | ( | ) | const |
Returns the horizontal position (in pixels) of the vertex.
- Returns
◆ y()
qreal GraphVertex::y | ( | ) | const |
Returns the vertical position (in pixels) of the vertex.
- Returns
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_neighborhoodList
|
private |
◆ m_number
|
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