#include <graphvertex.h>

+ Inheritance diagram for GraphVertex:
+ Collaboration diagram for GraphVertex:

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
 

Private Attributes

Graphm_graph
 
int m_number
 
int m_outEdgesCounter
 
int m_inEdgesCounter
 
int m_outDegree
 
int m_inDegree
 
int m_localDegree
 
int m_outEdgesNonSym
 
int m_inEdgesNonSym
 
int m_outEdgesSym
 
int m_value
 
int m_size
 
int m_labelSize
 
int m_numberSize
 
int m_numberDistance
 
int m_labelDistance
 
int m_curRelation
 
bool m_reciprocalLinked
 
bool m_enabled
 
bool m_hasCLC
 
bool m_isolated
 
double m_x
 
double m_y
 
qreal m_Eccentricity
 
qreal m_CLC
 
qreal m_delta
 
qreal m_EC
 
qreal m_SEC
 
qreal m_DC
 
qreal m_SDC
 
qreal m_DP
 
qreal m_SDP
 
qreal m_CC
 
qreal m_SCC
 
qreal m_BC
 
qreal m_SBC
 
qreal m_IRCC
 
qreal m_SIRCC
 
qreal m_SC
 
qreal m_SSC
 
qreal m_PC
 
qreal m_SPC
 
qreal m_SIC
 
qreal m_IC
 
qreal m_SPRC
 
qreal m_PRC
 
qreal m_PP
 
qreal m_SPP
 
qreal m_EVC
 
qreal m_SEVC
 
qreal m_distanceSum
 
QString m_color
 
QString m_numberColor
 
QString m_label
 
QString m_labelColor
 
QString m_shape
 
QString m_iconPath
 
QPointF m_disp
 
QHash< int, qreal > m_reciprocalEdges
 
L_int myPs
 
QMultiHash< int, L_intm_cliques
 
L_int m_neighborhoodList
 
H_IntToStr m_outLinkColors
 
H_IntToStr m_outEdgeLabels
 

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()

qreal GraphVertex::BC ( )
inline

◆ CC()

qreal GraphVertex::CC ( )
inline

◆ CLC()

qreal GraphVertex::CLC ( )
inline

◆ clearCliques()

void GraphVertex::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()

qreal GraphVertex::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()

qreal GraphVertex::distanceSum ( )
inline

◆ DP()

qreal GraphVertex::DP ( )
inline

◆ EC()

qreal GraphVertex::EC ( )
inline

◆ eccentricity()

qreal GraphVertex::eccentricity ( )

Returns the stored eccentricity of the vertex.

Returns

◆ EVC()

qreal GraphVertex::EVC ( )
inline

◆ hasCLC()

bool GraphVertex::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()

qreal GraphVertex::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()

int GraphVertex::inEdgesNonSym ( )
inline

◆ IRCC()

qreal GraphVertex::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()

int GraphVertex::outEdgesNonSym ( )
inline

◆ outEdgesReciprocated()

int GraphVertex::outEdgesReciprocated ( )
inline

◆ outLinkColor()

QString GraphVertex::outLinkColor ( const int &  v2)

Returns the color of the outbound edge to the given vertex.

Parameters
v2
Returns

◆ PC()

qreal GraphVertex::PC ( )
inline

◆ pos()

QPointF GraphVertex::pos ( ) const

Returns the point where the vertex is positioned.

Returns

◆ PP()

qreal GraphVertex::PP ( )
inline

◆ PRP()

qreal GraphVertex::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()

qreal GraphVertex::SBC ( )
inline

◆ SC()

qreal GraphVertex::SC ( )
inline

◆ SCC()

qreal GraphVertex::SCC ( )
inline

◆ SDC()

qreal GraphVertex::SDC ( )
inline

◆ SDP()

qreal GraphVertex::SDP ( )
inline

◆ SEC()

qreal GraphVertex::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()

void GraphVertex::setBC ( const qreal &  c)
inline

◆ setCC()

void GraphVertex::setCC ( const qreal &  c)
inline

◆ setCLC()

void GraphVertex::setCLC ( const qreal &  clucof)
inline

◆ setColor()

void GraphVertex::setColor ( const QString &  color)

Sets the vertex color.

Parameters
color

◆ setDC()

void GraphVertex::setDC ( const qreal &  c)
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()

void GraphVertex::setDistanceSum ( const qreal &  c)
inline

◆ setDP()

void GraphVertex::setDP ( const qreal &  c)
inline

◆ setEC()

void GraphVertex::setEC ( const qreal &  dist)
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()

void GraphVertex::setEVC ( const qreal &  c)
inline

◆ setIC()

void GraphVertex::setIC ( const qreal &  c)
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()

void GraphVertex::setInEdgesNonSym ( int  inEdgesNonSym = -1)
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()

void GraphVertex::setIRCC ( const qreal &  c)
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()

void GraphVertex::setOutEdgesNonSym ( int  outEdgesNonSym = -1)
inline

◆ setOutEdgesReciprocated()

void GraphVertex::setOutEdgesReciprocated ( int  outEdgesSym = -1)
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()

void GraphVertex::setPC ( const qreal &  c)
inline

◆ setPos()

void GraphVertex::setPos ( QPointF &  p)

Sets the point where the vertex is positioned.

Parameters
p

◆ setPP()

void GraphVertex::setPP ( const qreal &  c)
inline

◆ setPRP()

void GraphVertex::setPRP ( const qreal &  c)
inline

◆ setRelation()

void GraphVertex::setRelation ( int  newRel)

Changes the current relation of this vertex.

Parameters
newRel

◆ setSBC()

void GraphVertex::setSBC ( const qreal &  c)
inline

◆ setSC()

void GraphVertex::setSC ( const qreal &  c)
inline

◆ setSCC()

void GraphVertex::setSCC ( const qreal &  c)
inline

◆ setSDC()

void GraphVertex::setSDC ( const qreal &  c)
inline

◆ setSDP()

void GraphVertex::setSDP ( const qreal &  c)
inline

◆ setSEC()

void GraphVertex::setSEC ( const qreal &  c)
inline

◆ setSEVC()

void GraphVertex::setSEVC ( const qreal &  c)
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()

void GraphVertex::setSIC ( const qreal &  c)
inline

◆ setSIRCC()

void GraphVertex::setSIRCC ( const qreal &  c)
inline

◆ setSize()

void GraphVertex::setSize ( const int &  size)

Sets the size of the vertex.

Parameters
size

◆ setSPC()

void GraphVertex::setSPC ( const qreal &  c)
inline

◆ setSPP()

void GraphVertex::setSPP ( const qreal &  c)
inline

◆ setSPRP()

void GraphVertex::setSPRP ( const qreal &  c)
inline

◆ setSSC()

void GraphVertex::setSSC ( const qreal &  c)
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()

qreal GraphVertex::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()

qreal GraphVertex::SIC ( )
inline

◆ signalSetEdgeVisibility

void GraphVertex::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 
)
signal

◆ SIRCC()

qreal GraphVertex::SIRCC ( )
inline

◆ size()

int GraphVertex::size ( ) const

Returns the size of the vertex.

Returns

◆ SPC()

qreal GraphVertex::SPC ( )
inline

◆ SPP()

qreal GraphVertex::SPP ( )
inline

◆ SPRP()

qreal GraphVertex::SPRP ( )
inline

◆ SSC()

qreal GraphVertex::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

qreal GraphVertex::m_BC
private

◆ m_CC

qreal GraphVertex::m_CC
private

◆ m_CLC

qreal GraphVertex::m_CLC
private

◆ m_cliques

QMultiHash<int, L_int> GraphVertex::m_cliques
private

◆ m_color

QString GraphVertex::m_color
private

◆ m_curRelation

int GraphVertex::m_curRelation
private

◆ m_DC

qreal GraphVertex::m_DC
private

◆ m_delta

qreal GraphVertex::m_delta
private

◆ m_disp

QPointF GraphVertex::m_disp
private

◆ m_distance

H_distance GraphVertex::m_distance

◆ m_distanceSum

qreal GraphVertex::m_distanceSum
private

◆ m_DP

qreal GraphVertex::m_DP
private

◆ m_EC

qreal GraphVertex::m_EC
private

◆ m_Eccentricity

qreal GraphVertex::m_Eccentricity
private

◆ m_enabled

bool GraphVertex::m_enabled
private

◆ m_EVC

qreal GraphVertex::m_EVC
private

◆ m_graph

Graph* GraphVertex::m_graph
private

◆ m_hasCLC

bool GraphVertex::m_hasCLC
private

◆ m_IC

qreal GraphVertex::m_IC
private

◆ m_iconPath

QString GraphVertex::m_iconPath
private

◆ m_inDegree

int GraphVertex::m_inDegree
private

◆ m_inEdges

H_edges GraphVertex::m_inEdges

◆ m_inEdgesCounter

int GraphVertex::m_inEdgesCounter
private

◆ m_inEdgesNonSym

int GraphVertex::m_inEdgesNonSym
private

◆ m_IRCC

qreal GraphVertex::m_IRCC
private

◆ m_isolated

bool GraphVertex::m_isolated
private

◆ m_label

QString GraphVertex::m_label
private

◆ m_labelColor

QString GraphVertex::m_labelColor
private

◆ m_labelDistance

int GraphVertex::m_labelDistance
private

◆ m_labelSize

int GraphVertex::m_labelSize
private

◆ m_localDegree

int GraphVertex::m_localDegree
private

◆ m_neighborhoodList

L_int GraphVertex::m_neighborhoodList
private

◆ m_number

int GraphVertex::m_number
private

◆ m_numberColor

QString GraphVertex::m_numberColor
private

◆ m_numberDistance

int GraphVertex::m_numberDistance
private

◆ m_numberSize

int GraphVertex::m_numberSize
private

◆ m_outDegree

int GraphVertex::m_outDegree
private

◆ m_outEdgeLabels

H_IntToStr GraphVertex::m_outEdgeLabels
private

◆ m_outEdges

H_edges GraphVertex::m_outEdges

◆ m_outEdgesCounter

int GraphVertex::m_outEdgesCounter
private

◆ m_outEdgesNonSym

int GraphVertex::m_outEdgesNonSym
private

◆ m_outEdgesSym

int GraphVertex::m_outEdgesSym
private

◆ m_outLinkColors

H_IntToStr GraphVertex::m_outLinkColors
private

◆ m_PC

qreal GraphVertex::m_PC
private

◆ m_PP

qreal GraphVertex::m_PP
private

◆ m_PRC

qreal GraphVertex::m_PRC
private

◆ m_reciprocalEdges

QHash<int,qreal> GraphVertex::m_reciprocalEdges
private

◆ m_reciprocalLinked

bool GraphVertex::m_reciprocalLinked
private

◆ m_SBC

qreal GraphVertex::m_SBC
private

◆ m_SC

qreal GraphVertex::m_SC
private

◆ m_SCC

qreal GraphVertex::m_SCC
private

◆ m_SDC

qreal GraphVertex::m_SDC
private

◆ m_SDP

qreal GraphVertex::m_SDP
private

◆ m_SEC

qreal GraphVertex::m_SEC
private

◆ m_SEVC

qreal GraphVertex::m_SEVC
private

◆ m_shape

QString GraphVertex::m_shape
private

◆ m_shortestPaths

H_shortestPaths GraphVertex::m_shortestPaths

◆ m_SIC

qreal GraphVertex::m_SIC
private

◆ m_SIRCC

qreal GraphVertex::m_SIRCC
private

◆ m_size

int GraphVertex::m_size
private

◆ m_SPC

qreal GraphVertex::m_SPC
private

◆ m_SPP

qreal GraphVertex::m_SPP
private

◆ m_SPRC

qreal GraphVertex::m_SPRC
private

◆ m_SSC

qreal GraphVertex::m_SSC
private

◆ m_value

int GraphVertex::m_value
private

◆ m_x

double GraphVertex::m_x
private

◆ m_y

double GraphVertex::m_y
private

◆ myPs

L_int GraphVertex::myPs
private

The documentation for this class was generated from the following files: