SNAP Library 6.0, Developer Reference
2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
Node iterator. Only forward iteration (operator++) is supported. More...
#include <graph.h>
Public Member Functions | |
TNodeI () | |
TNodeI (const THashIter &NodeHIter) | |
TNodeI (const TNodeI &NodeI) | |
TNodeI & | operator= (const TNodeI &NodeI) |
TNodeI & | operator++ (int) |
Increment iterator. More... | |
TNodeI & | operator-- (int) |
Decrement iterator. More... | |
bool | operator< (const TNodeI &NodeI) const |
bool | operator== (const TNodeI &NodeI) const |
int | GetId () const |
Returns ID of the current node. More... | |
int | GetDeg () const |
Returns degree of the current node. More... | |
int | GetInDeg () const |
Returns in-degree of the current node (returns same as value GetDeg() since the graph is undirected). More... | |
int | GetOutDeg () const |
Returns out-degree of the current node (returns same as value GetDeg() since the graph is undirected). More... | |
void | SortNIdV () |
Sorts the adjacency lists of the current node. More... | |
int | GetInNId (const int &NodeN) const |
Returns ID of NodeN-th in-node (the node pointing to the current node). More... | |
int | GetOutNId (const int &NodeN) const |
Returns ID of NodeN-th out-node (the node the current node points to). More... | |
int | GetNbrNId (const int &NodeN) const |
Returns ID of NodeN-th neighboring node. More... | |
bool | IsInNId (const int &NId) const |
Tests whether node with ID NId points to the current node. More... | |
bool | IsOutNId (const int &NId) const |
Tests whether the current node points to node with ID NId. More... | |
bool | IsNbrNId (const int &NId) const |
Tests whether node with ID NId is a neighbor of the current node. More... | |
Private Types | |
typedef THash< TInt, TNode >::TIter | THashIter |
Private Attributes | |
THashIter | NodeHI |
Friends | |
class | TUNGraph |
Node iterator. Only forward iteration (operator++) is supported.
|
private |
|
inline |
|
inline |
Returns degree of the current node.
Definition at line 90 of file graph.h.
Referenced by TSnap::GenGeoPrefAttach(), TSnap::GetCmnNbrs< PUNGraph >(), TSnap::GetDegreeCentr(), TLocClustStat::TCutInfo::GetFracDegOut(), TSnap::GetGroupDegreeCentr(), TAGMUtil::GetNbhCom(), TCliqueOverlap::GetNbrs(), TCliqueOverlap::GetNodeIdWithMaxDeg(), TAGMFast::GradientForOneVar(), TAGMFast::GradientForRow(), TCesna::GradientForRow(), TAGMFast::HessianForOneVar(), TSnap::Infomap(), TSnap::TSnapDetail::InfomapOnlineIncrement(), ChibaNishizekiWeighter::Initialize(), TSnap::Intersect(), TSnap::Intersect1(), TAGMFit::JoinCom(), TAGMFit::LeaveCom(), TAGMFast::LikelihoodForOneVar(), TAGMFast::LikelihoodForRow(), TCesna::LikelihoodForRow(), TSnap::TSnapDetail::MapEquationNew2Modules(), TSnap::MaxCPGreedyBetter(), TSnap::MaxCPGreedyBetter1(), TSnap::MaxCPGreedyBetter2(), TSnap::MaxCPGreedyBetter3(), TCliqueOverlap::MaxNbrsInCANDNodeId(), TAGMFast::MLEGradAscent(), TAGMFast::MLEGradAscentParallel(), TCesna::MLEGradAscentParallel(), TAGMFast::MLENewton(), TAGMFast::NeighborComInit(), TAGMFit::NeighborComInit(), TCesna::NeighborComInit(), TAGMFast::RandomInit(), TAGMFit::RandomInit(), TCesna::RandomInit(), TAGMFit::SeekJoin(), TAGMFit::SeekLeave(), and TAGMFit::SeekSwitch().
|
inline |
Returns ID of the current node.
Definition at line 88 of file graph.h.
Referenced by TUNGraph::AddNode(), TUNGraph::BegEI(), TSnap::GetGroupDegreeCentr(), TUNGraph::TEdgeI::GetSrcNId(), higherDeg(), TSnap::Intersect(), TSnap::Intersect1(), TSnap::TSnapDetail::MapEquationNew2Modules(), TAGMFit::NeighborComInit(), and TAGMFit::RandomInit().
|
inline |
Returns in-degree of the current node (returns same as value GetDeg() since the graph is undirected).
Definition at line 92 of file graph.h.
Referenced by TSnap::GetEgonet().
|
inline |
Returns ID of NodeN-th in-node (the node pointing to the current node).
Range of NodeN: 0 <= NodeN < GetInDeg(). Since the graph is undirected GetInNId(), GetOutNId() and GetNbrNId() all give the same output.
Definition at line 101 of file graph.h.
Referenced by TSnap::GetEgonet().
|
inline |
Returns ID of NodeN-th neighboring node.
Range of NodeN: 0 <= NodeN < GetNbrDeg(). Since the graph is undirected GetInNId(), GetOutNId() and GetNbrNId() all give the same output.
Definition at line 111 of file graph.h.
Referenced by TSnap::GetCmnNbrs< PUNGraph >(), TLocClustStat::TCutInfo::GetFracDegOut(), TSnap::GetGroupDegreeCentr(), TAGMUtil::GetNbhCom(), TCliqueOverlap::GetNbrs(), TAGMFast::GradientForOneVar(), TAGMFast::GradientForRow(), TCesna::GradientForRow(), TAGMFast::HessianForOneVar(), TSnap::Infomap(), TSnap::TSnapDetail::InfomapOnlineIncrement(), ChibaNishizekiWeighter::Initialize(), TSnap::Intersect(), TSnap::Intersect1(), TAGMFit::JoinCom(), TAGMFit::LeaveCom(), TAGMFast::LikelihoodForOneVar(), TAGMFast::LikelihoodForRow(), TCesna::LikelihoodForRow(), TSnap::TSnapDetail::MapEquationNew2Modules(), TSnap::MaxCPGreedyBetter(), TSnap::MaxCPGreedyBetter1(), TSnap::MaxCPGreedyBetter2(), TSnap::MaxCPGreedyBetter3(), TCliqueOverlap::MaxNbrsInCANDNodeId(), TAGMFast::MLEGradAscent(), TAGMFast::MLEGradAscentParallel(), TCesna::MLEGradAscentParallel(), TAGMFast::MLENewton(), TAGMFast::NeighborComInit(), TAGMFit::NeighborComInit(), TCesna::NeighborComInit(), TAGMFit::RandomInit(), TAGMFit::SeekJoin(), TAGMFit::SeekLeave(), TAGMFit::SeekSwitch(), and MotifCluster::SemicliqueMotifAdjacency().
|
inline |
Returns out-degree of the current node (returns same as value GetDeg() since the graph is undirected).
Definition at line 94 of file graph.h.
Referenced by TSnap::TSnapDetail::_GirvanNewmanGetModularity(), TLocClust::ApproxPageRank(), TLocClustStat::BagOfWhiskers(), TLocClustStat::BagOfWhiskers2(), TUNGraph::BegEI(), TUndirFFire::BurnGeoFire(), MAPPR::computeAPPR(), MAPPR::computeProfile(), TAGMUtil::GetConductance(), TLocClust::GetCutStat(), TSnap::GetSubGraph(), higherDeg(), TSnap::TSnapDetail::TCNMQMatrix::Init(), TUNGraph::TEdgeI::operator++(), MotifCluster::SemicliqueMotifAdjacency(), and TLocClust::SupportSweep().
|
inline |
Returns ID of NodeN-th out-node (the node the current node points to).
Range of NodeN: 0 <= NodeN < GetOutDeg(). Since the graph is undirected GetInNId(), GetOutNId() and GetNbrNId() all give the same output.
Definition at line 106 of file graph.h.
Referenced by TLocClust::ApproxPageRank(), TUNGraph::BegEI(), TUndirFFire::BurnGeoFire(), MAPPR::computeAPPR(), MAPPR::computeProfile(), TAGMUtil::GetConductance(), TLocClust::GetCutStat(), TUNGraph::TEdgeI::GetDstNId(), TSnap::GetSubGraph(), and TLocClust::SupportSweep().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 71 of file graph.h.
Referenced by TUNGraph::GetEI(), operator<(), operator=(), and operator==().