#include <vertex.h>

Inheritance diagram for Vertex:
Collaboration diagram for Vertex:

Signals

void setEdgeVisibility (int, int, int, bool)
 

Public Member Functions

 Vertex (Graph *parent, const long 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)
 
 Vertex (const long int &name)
 
 ~Vertex ()
 
long int name () const
 
void setName (const long int &name)
 
void setEnabled (const bool &flag)
 
bool isEnabled () const
 
void relationSet (int)
 Vertex::relationSet. More...
 
void edgeAddTo (const long int &v2, const float &weight)
 Vertex::edgeAddTo Adds an outLink to target with weight w. More...
 
void edgeAddFrom (const long int &v1, const float &weight)
 Vertex::edgeAddFrom. More...
 
void changeOutEdgeWeight (long int target, float weight)
 
void setOutEdgeEnabled (long int, bool)
 Vertex::setOutEdgeEnabled. More...
 
void edgeRemoveTo (long int target)
 Vertex::edgeRemoveTo finds and removes a link to vertex v2. More...
 
void edgeRemoveFrom (long int source)
 Vertex::edgeRemoveFrom. More...
 
QHash< int, float > * outEdgesEnabledHash (const bool &allRelations=false)
 Vertex::outEdgesEnabledHash Returns a qhash of all enabled outEdges in the active relation. More...
 
QHash< int, float > * outEdgesAllRelationsUniqueHash ()
 
QHash< int, float > * inEdgesEnabledHash ()
 Vertex::inEdgesEnabledHash Returns a qhash of all enabled inEdges in the active relation. More...
 
QHash< int, float > * reciprocalEdgesHash ()
 Vertex::allReciprocalEdges Returns a qhash of all reciprocal edges to neighbors in the active relation. More...
 
QList< int > neighborhoodList ()
 Vertex::neighborhoodList Returns a list of all neighbors mutually connected to this vertex in the active relation Same as calling Vertex::reciprocalEdgesHash().keys() which returns a QList of int keys, where each key is a vertex reciprocally connected to this one. More...
 
long int outEdges ()
 Vertex::outEdges Returns the number of active outbound arcs, aka the number of outEdges, from this vertex for the current relation. More...
 
long int outEdgesConst () const
 Vertex::outEdgesConst Returns the number of active outbound arcs Needs to have outEdges called before the call to this method. More...
 
long int inEdges ()
 Vertex::inEdges Returns the number of active inbound arcs, aka the number of inEdges, to this vertex for the current relation. More...
 
long int inEdgesConst () const
 Vertex::inEdgesConst Returns the number of active inbound arcs Needs to have inEdges called before the call to this method. More...
 
long int degreeOut ()
 Vertex::degreeOut Returns the degreeOut (the sum of all enabled outEdges weights) of this vertex. More...
 
long int outDegreeConst ()
 
long int degreeIn ()
 Vertex::degreeIn Returns the degreeIn (the sum of all enabled inEdges weights) of this vertex. More...
 
long int inDegreeConst ()
 
long int localDegree ()
 
void setEccentricity (float c)
 
float eccentricity ()
 
bool isOutLinked ()
 
float hasEdgeTo (const long int &v, const bool &allRelations=false)
 Vertex::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 ()
 
float hasEdgeFrom (const long int &v, const bool &allRelations=false)
 Vertex::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 (float m_threshold, bool overThreshold)
 Vertex::edgeFilterByWeight Called from Graph parent to filter edges over or under a specified weight (m_threshold) More...
 
void edgeFilterByRelation (int relation, bool status)
 Vertex::edgeFilterByRelation Called from Graph to filter out all edges of a given relation. More...
 
void edgeFilterUnilateral (const bool &toggle=false)
 Vertex::edgeFilterUnilateral Called from Graph to filter 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)
 
QString shape () const
 
void setColor (const QString &color)
 
QString color () const
 
QString colorToPajek ()
 
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 float &x)
 
float x () const
 
void setY (const float &y)
 
float y () const
 
QPointF pos () const
 
void setPos (QPointF &p)
 
QPointF & disp ()
 
void set_dispX (float x)
 
void set_dispY (float y)
 
void setOutLinkColor (const long int &v2, const QString &color)
 
QString outLinkColor (const long int &v2)
 
void setOutEdgeLabel (const long int &v2, const QString &label)
 
QString outEdgeLabel (const long int &v2) const
 
void setDelta (float c)
 
float delta ()
 
void clearPs ()
 Vertex::clearPs. More...
 
void appendToPs (long int vertex)
 
L_int Ps (void)
 
void setDC (float c)
 
void setSDC (float c)
 
float DC ()
 
float SDC ()
 
void setCC (float c)
 
void setSCC (float c)
 
float CC ()
 
float SCC ()
 
void setIRCC (float c)
 
void setSIRCC (float c)
 
float IRCC ()
 
float SIRCC ()
 
void setBC (float c)
 
void setSBC (float c)
 
float BC ()
 
float SBC ()
 
void setSC (float c)
 
void setSSC (float c)
 
float SC ()
 
float SSC ()
 
void setEC (float dist)
 
void setSEC (float c)
 
float EC ()
 
float SEC ()
 
void setPC (float c)
 
void setSPC (float c)
 
float PC ()
 
float SPC ()
 
void setIC (float c)
 
void setSIC (float c)
 
float IC ()
 
float SIC ()
 
void setDP (float c)
 
void setSDP (float c)
 
float DP ()
 
float SDP ()
 
void setPRP (float c)
 
void setSPRP (float c)
 
float PRP ()
 
float SPRP ()
 
void setPP (float c)
 
void setSPP (float c)
 
float PP ()
 
float SPP ()
 
float CLC ()
 
void setCLC (float clucof)
 
bool hasCLC ()
 
void setEVC (float c)
 
void setSEVC (float c)
 
float EVC ()
 
float SEVC ()
 
int cliques (const int &ofSize)
 Vertex::cliques Returns the number of cliques sized size this vertex belongs to. More...
 
void cliqueAdd (const QList< int > &clique)
 Vertex::cliqueAdd. More...
 
void clearCliques ()
 

Public Attributes

H_edges m_outEdges
 
H_edges m_inEdges
 

Private Attributes

GraphparentGraph
 
long int m_name
 
long int m_outEdgesCounter
 
long int m_inEdgesCounter
 
long int m_outDegree
 
long int m_inDegree
 
long int m_localDegree
 
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
 
float m_Eccentricity
 
float m_CLC
 
float m_delta
 
float m_EC
 
float m_SEC
 
float m_DC
 
float m_SDC
 
float m_DP
 
float m_SDP
 
float m_CC
 
float m_SCC
 
float m_BC
 
float m_SBC
 
float m_IRCC
 
float m_SIRCC
 
float m_SC
 
float m_SSC
 
float m_PC
 
float m_SPC
 
float m_SIC
 
float m_IC
 
float m_SPRC
 
float m_PRC
 
float m_PP
 
float m_SPP
 
float m_EVC
 
float m_SEVC
 
QString m_color
 
QString m_numberColor
 
QString m_label
 
QString m_labelColor
 
QString m_shape
 
QPointF m_disp
 
QHash< int, float > * m_reciprocalEdges
 
L_int myPs
 
L_int m_neighborhoodList
 
H_IntToStr outLinkColors
 
H_IntToStr m_outEdgeLabels
 
QHash< int, L_intm_cliques
 

Constructor & Destructor Documentation

Vertex::Vertex ( Graph parent,
const long 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 
)
Vertex::Vertex ( const long int &  name)
Vertex::~Vertex ( )

Member Function Documentation

void Vertex::appendToPs ( long int  vertex)
float Vertex::BC ( )
inline
float Vertex::CC ( )
inline
void Vertex::changeOutEdgeWeight ( long int  target,
float  weight 
)
float Vertex::CLC ( )
inline
void Vertex::clearCliques ( )
inline
void Vertex::clearPs ( )
void Vertex::cliqueAdd ( const QList< int > &  clique)

Vertex::cliqueAdd.

Parameters
clique
int Vertex::cliques ( const int &  ofSize)

Vertex::cliques Returns the number of cliques sized size this vertex belongs to.

Parameters
size
Returns
QString Vertex::color ( ) const
inline
QString Vertex::colorToPajek ( )
float Vertex::DC ( )
inline
long int Vertex::degreeIn ( )

Vertex::degreeIn Returns the degreeIn (the sum of all enabled inEdges weights) of this vertex.

Returns
long int
long int Vertex::degreeOut ( )

Vertex::degreeOut Returns the degreeOut (the sum of all enabled outEdges weights) of this vertex.

Returns
long int
float Vertex::delta ( )
inline
QPointF& Vertex::disp ( )
inline
float Vertex::DP ( )
inline
float Vertex::EC ( )
inline
float Vertex::eccentricity ( )
inline
void Vertex::edgeAddFrom ( const long int &  v1,
const float &  weight 
)

Vertex::edgeAddFrom.

Parameters
source
weight
void Vertex::edgeAddTo ( const long int &  v2,
const float &  weight 
)

Vertex::edgeAddTo Adds an outLink to target with weight w.

Parameters
target
weight
void Vertex::edgeFilterByRelation ( int  relation,
bool  status 
)

Vertex::edgeFilterByRelation Called from Graph to filter out all edges of a given relation.

Parameters
relation
void Vertex::edgeFilterByWeight ( float  m_threshold,
bool  overThreshold 
)

Vertex::edgeFilterByWeight Called from Graph parent to filter edges over or under a specified weight (m_threshold)

Parameters
m_threshold
overThreshold
void Vertex::edgeFilterUnilateral ( const bool &  toggle = false)

Vertex::edgeFilterUnilateral Called from Graph to filter non-reciprocal edges If allRelations is true, then all relations are checked.

Parameters
toggle
void Vertex::edgeRemoveFrom ( long int  v2)

Vertex::edgeRemoveFrom.

Parameters
v2
void Vertex::edgeRemoveTo ( long int  v2)

Vertex::edgeRemoveTo finds and removes a link to vertex v2.

Parameters
v2
float Vertex::EVC ( )
inline
bool Vertex::hasCLC ( )
inline
float Vertex::hasEdgeFrom ( const long int &  v2,
const bool &  allRelations = false 
)

Vertex::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
float Vertex::hasEdgeTo ( const long int &  v2,
const bool &  allRelations = false 
)

Vertex::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
float Vertex::IC ( )
inline
long int Vertex::inDegreeConst ( )
long int Vertex::inEdges ( )

Vertex::inEdges Returns the number of active inbound arcs, aka the number of inEdges, to this vertex for the current relation.

Returns
long int
long int Vertex::inEdgesConst ( ) const

Vertex::inEdgesConst Returns the number of active inbound arcs Needs to have inEdges called before the call to this method.

Returns
long int
QHash< int, float > * Vertex::inEdgesEnabledHash ( )

Vertex::inEdgesEnabledHash Returns a qhash of all enabled inEdges in the active relation.

Returns
QHash<int,float>*
float Vertex::IRCC ( )
inline
bool Vertex::isEnabled ( ) const
inline
bool Vertex::isInLinked ( )
inline
bool Vertex::isIsolated ( )
inline
bool Vertex::isOutLinked ( )
inline
QString Vertex::label ( ) const
inline
QString Vertex::labelColor ( ) const
inline
int Vertex::labelDistance ( ) const
inline
int Vertex::labelSize ( ) const
inline
long int Vertex::localDegree ( )

localDegree is the degreeOut + degreeIn minus the edges counted twice.

long int Vertex::name ( ) const
inline
QList< int > Vertex::neighborhoodList ( )

Vertex::neighborhoodList Returns a list of all neighbors mutually connected to this vertex in the active relation Same as calling Vertex::reciprocalEdgesHash().keys() which returns a QList of int keys, where each key is a vertex reciprocally connected to this one.

Returns
QList<int>
QString Vertex::numberColor ( ) const
inline
int Vertex::numberDistance ( ) const
inline
int Vertex::numberSize ( ) const
inline
long int Vertex::outDegreeConst ( )
QString Vertex::outEdgeLabel ( const long int &  v2) const
inline
long int Vertex::outEdges ( )

Vertex::outEdges Returns the number of active outbound arcs, aka the number of outEdges, from this vertex for the current relation.

Returns
long int
QHash< int, float > * Vertex::outEdgesAllRelationsUniqueHash ( )
long int Vertex::outEdgesConst ( ) const

Vertex::outEdgesConst Returns the number of active outbound arcs Needs to have outEdges called before the call to this method.

Returns
long int
QHash< int, float > * Vertex::outEdgesEnabledHash ( const bool &  allRelations = false)

Vertex::outEdgesEnabledHash Returns a qhash of all enabled outEdges in the active relation.

Returns
QHash<int,float>*
QString Vertex::outLinkColor ( const long int &  v2)
inline
float Vertex::PC ( )
inline
QPointF Vertex::pos ( ) const
inline
float Vertex::PP ( )
inline
float Vertex::PRP ( )
inline
L_int Vertex::Ps ( void  )
QHash< int, float > * Vertex::reciprocalEdgesHash ( )

Vertex::allReciprocalEdges Returns a qhash of all reciprocal edges to neighbors in the active relation.

Returns
QHash<int,float>*
void Vertex::relationSet ( int  relation)

Vertex::relationSet.

Parameters
relation
float Vertex::SBC ( )
inline
float Vertex::SC ( )
inline
float Vertex::SCC ( )
inline
float Vertex::SDC ( )
inline
float Vertex::SDP ( )
inline
float Vertex::SEC ( )
inline
void Vertex::set_dispX ( float  x)
inline
void Vertex::set_dispY ( float  y)
inline
void Vertex::setBC ( float  c)
inline
void Vertex::setCC ( float  c)
inline
void Vertex::setCLC ( float  clucof)
inline
void Vertex::setColor ( const QString &  color)
inline
void Vertex::setDC ( float  c)
inline
void Vertex::setDelta ( float  c)
inline
void Vertex::setDP ( float  c)
inline
void Vertex::setEC ( float  dist)
inline
void Vertex::setEccentricity ( float  c)
inline
void Vertex::setEdgeVisibility ( int  ,
int  ,
int  ,
bool   
)
signal
void Vertex::setEnabled ( const bool &  flag)
inline
void Vertex::setEVC ( float  c)
inline
void Vertex::setIC ( float  c)
inline
void Vertex::setIRCC ( float  c)
inline
void Vertex::setIsolated ( bool  isolated)
inline
void Vertex::setLabel ( const QString &  label)
inline
void Vertex::setLabelColor ( const QString &  labelColor)
inline
void Vertex::setLabelDistance ( const int &  distance)
inline
void Vertex::setLabelSize ( const int &  size)
inline
void Vertex::setName ( const long int &  name)
inline
void Vertex::setNumberColor ( const QString &  color)
inline
void Vertex::setNumberDistance ( const int &  distance)
inline
void Vertex::setNumberSize ( const int &  size)
inline
void Vertex::setOutEdgeEnabled ( long int  target,
bool  status 
)

Vertex::setOutEdgeEnabled.

Parameters
target
status
void Vertex::setOutEdgeLabel ( const long int &  v2,
const QString &  label 
)
inline
void Vertex::setOutLinkColor ( const long int &  v2,
const QString &  color 
)
inline
void Vertex::setPC ( float  c)
inline
void Vertex::setPos ( QPointF &  p)
inline
void Vertex::setPP ( float  c)
inline
void Vertex::setPRP ( float  c)
inline
void Vertex::setSBC ( float  c)
inline
void Vertex::setSC ( float  c)
inline
void Vertex::setSCC ( float  c)
inline
void Vertex::setSDC ( float  c)
inline
void Vertex::setSDP ( float  c)
inline
void Vertex::setSEC ( float  c)
inline
void Vertex::setSEVC ( float  c)
inline
void Vertex::setShape ( const QString &  shape)
inline
void Vertex::setSIC ( float  c)
inline
void Vertex::setSIRCC ( float  c)
inline
void Vertex::setSize ( const int &  size)
inline
void Vertex::setSPC ( float  c)
inline
void Vertex::setSPP ( float  c)
inline
void Vertex::setSPRP ( float  c)
inline
void Vertex::setSSC ( float  c)
inline
void Vertex::setX ( const float &  x)
inline
void Vertex::setY ( const float &  y)
inline
float Vertex::SEVC ( )
inline
QString Vertex::shape ( ) const
inline
float Vertex::SIC ( )
inline
float Vertex::SIRCC ( )
inline
int Vertex::size ( ) const
inline
float Vertex::SPC ( )
inline
float Vertex::SPP ( )
inline
float Vertex::SPRP ( )
inline
float Vertex::SSC ( )
inline
float Vertex::x ( ) const
inline
float Vertex::y ( ) const
inline

Member Data Documentation

float Vertex::m_BC
private
float Vertex::m_CC
private
float Vertex::m_CLC
private
QHash<int, L_int> Vertex::m_cliques
private
QString Vertex::m_color
private
int Vertex::m_curRelation
private
float Vertex::m_DC
private
float Vertex::m_delta
private
QPointF Vertex::m_disp
private
float Vertex::m_DP
private
float Vertex::m_EC
private
float Vertex::m_Eccentricity
private
bool Vertex::m_enabled
private
float Vertex::m_EVC
private
bool Vertex::m_hasCLC
private
float Vertex::m_IC
private
long int Vertex::m_inDegree
private
H_edges Vertex::m_inEdges
long int Vertex::m_inEdgesCounter
private
float Vertex::m_IRCC
private
bool Vertex::m_isolated
private
QString Vertex::m_label
private
QString Vertex::m_labelColor
private
int Vertex::m_labelDistance
private
int Vertex::m_labelSize
private
long int Vertex::m_localDegree
private
long int Vertex::m_name
private
L_int Vertex::m_neighborhoodList
private
QString Vertex::m_numberColor
private
int Vertex::m_numberDistance
private
int Vertex::m_numberSize
private
long int Vertex::m_outDegree
private
H_IntToStr Vertex::m_outEdgeLabels
private
H_edges Vertex::m_outEdges
long int Vertex::m_outEdgesCounter
private
float Vertex::m_PC
private
float Vertex::m_PP
private
float Vertex::m_PRC
private
QHash<int,float>* Vertex::m_reciprocalEdges
private
bool Vertex::m_reciprocalLinked
private
float Vertex::m_SBC
private
float Vertex::m_SC
private
float Vertex::m_SCC
private
float Vertex::m_SDC
private
float Vertex::m_SDP
private
float Vertex::m_SEC
private
float Vertex::m_SEVC
private
QString Vertex::m_shape
private
float Vertex::m_SIC
private
float Vertex::m_SIRCC
private
int Vertex::m_size
private
float Vertex::m_SPC
private
float Vertex::m_SPP
private
float Vertex::m_SPRC
private
float Vertex::m_SSC
private
int Vertex::m_value
private
double Vertex::m_x
private
double Vertex::m_y
private
L_int Vertex::myPs
private
H_IntToStr Vertex::outLinkColors
private
Graph* Vertex::parentGraph
private

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