SNAP Library , Developer Reference
2013-01-07 14:03:36
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <graph.h>
Public Member Functions | |
TNode () | |
TNode (const int &NId) | |
TNode (const TNode &Node) | |
TNode (TSIn &SIn) | |
void | Save (TSOut &SOut) const |
int | GetId () const |
int | GetDeg () const |
int | GetInDeg () const |
int | GetOutDeg () const |
int | GetInEId (const int &EdgeN) const |
int | GetOutEId (const int &EdgeN) const |
int | GetNbrEId (const int &EdgeN) const |
bool | IsInEId (const int &EId) const |
bool | IsOutEId (const int &EId) const |
Private Attributes | |
TInt | Id |
TIntV | InEIdV |
TIntV | OutEIdV |
Friends | |
class | TNEGraph |
TNEGraph::TNode::TNode | ( | ) | [inline] |
TNEGraph::TNode::TNode | ( | const int & | NId | ) | [inline] |
TNEGraph::TNode::TNode | ( | const TNode & | Node | ) | [inline] |
TNEGraph::TNode::TNode | ( | TSIn & | SIn | ) | [inline] |
int TNEGraph::TNode::GetDeg | ( | ) | const [inline] |
Definition at line 571 of file graph.h.
References GetInDeg(), and GetOutDeg().
int TNEGraph::TNode::GetId | ( | ) | const [inline] |
Definition at line 570 of file graph.h.
References Id.
Referenced by TNEGraph::DelNode(), and TNEGraph::IsOk().
{ return Id; }
int TNEGraph::TNode::GetInDeg | ( | ) | const [inline] |
Definition at line 572 of file graph.h.
References InEIdV, and TVec< TVal >::Len().
Referenced by TNEGraph::DelNode(), GetDeg(), TNEGraph::IsEdge(), TNEGraph::TNodeI::IsInNId(), and TNEGraph::IsOk().
int TNEGraph::TNode::GetInEId | ( | const int & | EdgeN | ) | const [inline] |
Definition at line 574 of file graph.h.
References InEIdV.
Referenced by TNEGraph::DelNode(), GetNbrEId(), TNEGraph::IsEdge(), TNEGraph::TNodeI::IsInNId(), and TNEGraph::IsOk().
{ return InEIdV[EdgeN]; }
int TNEGraph::TNode::GetNbrEId | ( | const int & | EdgeN | ) | const [inline] |
Definition at line 576 of file graph.h.
References GetInEId(), GetOutDeg(), and GetOutEId().
int TNEGraph::TNode::GetOutDeg | ( | ) | const [inline] |
Definition at line 573 of file graph.h.
References TVec< TVal >::Len(), and OutEIdV.
Referenced by TNEGraph::DelNode(), GetDeg(), GetNbrEId(), TNEGraph::IsEdge(), TNEGraph::IsOk(), and TNEGraph::TNodeI::IsOutNId().
int TNEGraph::TNode::GetOutEId | ( | const int & | EdgeN | ) | const [inline] |
Definition at line 575 of file graph.h.
References OutEIdV.
Referenced by TNEGraph::DelNode(), GetNbrEId(), TNEGraph::IsEdge(), TNEGraph::IsOk(), and TNEGraph::TNodeI::IsOutNId().
{ return OutEIdV[EdgeN]; }
bool TNEGraph::TNode::IsInEId | ( | const int & | EId | ) | const [inline] |
bool TNEGraph::TNode::IsOutEId | ( | const int & | EId | ) | const [inline] |
void TNEGraph::TNode::Save | ( | TSOut & | SOut | ) | const [inline] |
TInt TNEGraph::TNode::Id [private] |
TIntV TNEGraph::TNode::InEIdV [private] |
Definition at line 563 of file graph.h.
Referenced by TNEGraph::AddEdge(), TNEGraph::Defrag(), TNEGraph::DelEdge(), GetInDeg(), GetInEId(), IsInEId(), TNEGraph::IsOk(), and Save().
TIntV TNEGraph::TNode::OutEIdV [private] |
Definition at line 563 of file graph.h.
Referenced by TNEGraph::AddEdge(), TNEGraph::Defrag(), TNEGraph::DelEdge(), GetOutDeg(), GetOutEId(), TNEGraph::IsOk(), IsOutEId(), and Save().