v2.0.0
Loading...
Searching...
No Matches
CONNECTIVITYLIB::NetworkNode Class Reference

Graph node carrying a 3D position and its incident in/out, full/thresholded edge lists. More...

#include <networknode.h>

Public Types

typedef QSharedPointer< NetworkNodeSPtr
typedef QSharedPointer< const NetworkNodeConstSPtr

Public Member Functions

 NetworkNode (qint16 iId, const Eigen::RowVectorXf &vecVert)
const QList< QSharedPointer< NetworkEdge > > & getFullEdges () const
QList< QSharedPointer< NetworkEdge > > getThresholdedEdges () const
QList< QSharedPointer< NetworkEdge > > getFullEdgesIn () const
QList< QSharedPointer< NetworkEdge > > getThresholdedEdgesIn () const
QList< QSharedPointer< NetworkEdge > > getFullEdgesOut () const
QList< QSharedPointer< NetworkEdge > > getThresholdedEdgesOut () const
const Eigen::RowVectorXf & getVert () const
qint16 getId () const
qint16 getFullDegree () const
qint16 getThresholdedDegree () const
qint16 getFullIndegree () const
qint16 getThresholdedIndegree () const
qint16 getFullOutdegree () const
qint16 getThresholdedOutdegree () const
double getFullStrength () const
double getThresholdedStrength () const
double getFullInstrength () const
double getThresholdedInstrength () const
double getFullOutstrength () const
double getThresholdedOutstrength () const
void setHubStatus (bool bIsHub)
bool getHubStatus () const
void append (QSharedPointer< NetworkEdge > newEdge)

Protected Attributes

bool m_bIsHub
qint16 m_iId
Eigen::RowVectorXf m_vecVert
QList< QSharedPointer< NetworkEdge > > m_lEdges

Detailed Description

Graph node carrying a 3D position and its incident in/out, full/thresholded edge lists.

Node of a Network. Stores a unique ID, a 3D anatomical position (sensor coordinate or source vertex) and the lists of incident edges partitioned by direction (in / out) and by threshold state (full / thresholded), so that graph-theoretic measures can be read off without rescanning the global edge list.

Definition at line 79 of file networknode.h.

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for NetworkNode.

Definition at line 84 of file networknode.h.

◆ SPtr

Shared pointer type for NetworkNode.

Definition at line 83 of file networknode.h.

Constructor & Destructor Documentation

◆ NetworkNode()

NetworkNode::NetworkNode ( qint16 iId,
const Eigen::RowVectorXf & vecVert )
explicit

Constructs a NetworkNode object.

Parameters
[in]iIdThe node's ID.
[in]vecVertThe node's 3D position.

Definition at line 46 of file networknode.cpp.

Member Function Documentation

◆ append()

void NetworkNode::append ( QSharedPointer< NetworkEdge > newEdge)

Appends a network edge to this network node. Automatically decides whether to add to the in or out edges.

Parameters
[in]newEdgeThe new edge item.

Definition at line 335 of file networknode.cpp.

◆ getFullDegree()

qint16 NetworkNode::getFullDegree ( ) const

Returns node degree corresponding to the full network.

Returns
The node degree calculated as the number of edges connected to a node (undirected gaph).

Definition at line 151 of file networknode.cpp.

◆ getFullEdges()

const QList< QSharedPointer< NetworkEdge > > & NetworkNode::getFullEdges ( ) const

Returns the ingoing edges corresponding to the full network.

Returns
Returns the list with all ingoing edges.

Definition at line 55 of file networknode.cpp.

◆ getFullEdgesIn()

QList< QSharedPointer< NetworkEdge > > NetworkNode::getFullEdgesIn ( ) const

Returns the ingoing edges corresponding to the full network.

Returns
Returns the list with all ingoing edges.

Definition at line 77 of file networknode.cpp.

◆ getFullEdgesOut()

QList< QSharedPointer< NetworkEdge > > NetworkNode::getFullEdgesOut ( ) const

Returns the outgoing edges corresponding to the full network.

Returns
Returns the list with all outgoing edges.

Definition at line 107 of file networknode.cpp.

◆ getFullIndegree()

qint16 NetworkNode::getFullIndegree ( ) const

Returns node indegree corresponding to the full network.

Returns
The node degree calculated as the number of incoming edges (only in directed graphs).

Definition at line 173 of file networknode.cpp.

◆ getFullInstrength()

double NetworkNode::getFullInstrength ( ) const

Returns node strength of all ingoing edges corresponding to the full network.

Returns
The node strength calculated as the sum of all weights of all ingoing edges of a node.

Definition at line 261 of file networknode.cpp.

◆ getFullOutdegree()

qint16 NetworkNode::getFullOutdegree ( ) const

Returns node outdegree corresponding to the full network.

Returns
The node degree calculated as the number of outgoing edges (only in directed graphs).

Definition at line 203 of file networknode.cpp.

◆ getFullOutstrength()

double NetworkNode::getFullOutstrength ( ) const

Returns node strength of all outgoing edges corresponding to the full network.

Returns
The node strength calculated as the sum of all weights of all outgoing edges of a node.

Definition at line 291 of file networknode.cpp.

◆ getFullStrength()

double NetworkNode::getFullStrength ( ) const

Returns node strength corresponding to the full network.

Returns
The node strength calculated as the sum of all weights of all edges of a node.

Definition at line 233 of file networknode.cpp.

◆ getHubStatus()

bool NetworkNode::getHubStatus ( ) const

Returns flag describing whether this node is a hub or not.

Returns
Whether this node is a hub or not.

Definition at line 328 of file networknode.cpp.

◆ getId()

qint16 NetworkNode::getId ( ) const

Returns the node id.

Returns
Returns the node id.

Definition at line 144 of file networknode.cpp.

◆ getThresholdedDegree()

qint16 NetworkNode::getThresholdedDegree ( ) const

Returns node degree corresponding to the thresholded network.

Returns
The node degree calculated as the number of edges connected to a node (undirected gaph).

Definition at line 158 of file networknode.cpp.

◆ getThresholdedEdges()

QList< QSharedPointer< NetworkEdge > > NetworkNode::getThresholdedEdges ( ) const

Returns all edges corresponding to the thresholded network.

Returns
Returns the list with all ingoing edges.

Definition at line 62 of file networknode.cpp.

◆ getThresholdedEdgesIn()

QList< QSharedPointer< NetworkEdge > > NetworkNode::getThresholdedEdgesIn ( ) const

Returns the ingoing edges corresponding to the thresholded network.

Returns
Returns the list with all ingoing edges.

Definition at line 92 of file networknode.cpp.

◆ getThresholdedEdgesOut()

QList< QSharedPointer< NetworkEdge > > NetworkNode::getThresholdedEdgesOut ( ) const

Returns the outgoing edges corresponding to the thresholded network.

Returns
Returns the list with all outgoing edges.

Definition at line 122 of file networknode.cpp.

◆ getThresholdedIndegree()

qint16 NetworkNode::getThresholdedIndegree ( ) const

Returns node indegree corresponding to the thresholded network.

Returns
The node degree calculated as the number of incoming edges (only in directed graphs).

Definition at line 188 of file networknode.cpp.

◆ getThresholdedInstrength()

double NetworkNode::getThresholdedInstrength ( ) const

Returns node strength of all ingoing edges corresponding to the thresholded network.

Returns
The node strength calculated as the sum of all weights of all ingoing edges of a node.

Definition at line 276 of file networknode.cpp.

◆ getThresholdedOutdegree()

qint16 NetworkNode::getThresholdedOutdegree ( ) const

Returns node outdegree corresponding to the thresholded network.

Returns
The node degree calculated as the number of outgoing edges (only in directed graphs).

Definition at line 218 of file networknode.cpp.

◆ getThresholdedOutstrength()

double NetworkNode::getThresholdedOutstrength ( ) const

Returns node strength of all outgoing edges corresponding to the thresholded network.

Returns
The node strength calculated as the sum of all weights of all outgoing edges of a node.

Definition at line 306 of file networknode.cpp.

◆ getThresholdedStrength()

double NetworkNode::getThresholdedStrength ( ) const

Returns node strength corresponding to the thresholded network.

Returns
The node strength calculated as the sum of all weights of all edges of a node.

Definition at line 246 of file networknode.cpp.

◆ getVert()

const RowVectorXf & NetworkNode::getVert ( ) const

Returns the vertex (position) of the node.

Returns
Returns the 3D position of the node.

Definition at line 137 of file networknode.cpp.

◆ setHubStatus()

void NetworkNode::setHubStatus ( bool bIsHub)

Sets the hub status of this node.

Parameters
[in]bIsHubNew hub status for this node.

Definition at line 321 of file networknode.cpp.

Member Data Documentation

◆ m_bIsHub

bool CONNECTIVITYLIB::NetworkNode::m_bIsHub
protected

Whether this node is a hub.

Definition at line 280 of file networknode.h.

◆ m_iId

qint16 CONNECTIVITYLIB::NetworkNode::m_iId
protected

The node's ID.

Definition at line 282 of file networknode.h.

◆ m_lEdges

QList<QSharedPointer<NetworkEdge> > CONNECTIVITYLIB::NetworkNode::m_lEdges
protected

List with all incoming edges of the node.

Definition at line 286 of file networknode.h.

◆ m_vecVert

Eigen::RowVectorXf CONNECTIVITYLIB::NetworkNode::m_vecVert
protected

The 3D position of the node.

Definition at line 284 of file networknode.h.


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