SNAP Library 2.1, User Reference  2013-09-25 10:47:25
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TNEGraph::TNode Class Reference

#include <graph.h>

List of all members.

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

Detailed Description

Definition at line 561 of file graph.h.


Constructor & Destructor Documentation

TNEGraph::TNode::TNode ( ) [inline]

Definition at line 566 of file graph.h.

: Id(-1), InEIdV(), OutEIdV() { }
TNEGraph::TNode::TNode ( const int &  NId) [inline]

Definition at line 567 of file graph.h.

: Id(NId), InEIdV(), OutEIdV() { }
TNEGraph::TNode::TNode ( const TNode Node) [inline]

Definition at line 568 of file graph.h.

: Id(Node.Id), InEIdV(Node.InEIdV), OutEIdV(Node.OutEIdV) { }
TNEGraph::TNode::TNode ( TSIn SIn) [inline]

Definition at line 569 of file graph.h.

: Id(SIn), InEIdV(SIn), OutEIdV(SIn) { }

Member Function Documentation

int TNEGraph::TNode::GetDeg ( ) const [inline]

Definition at line 572 of file graph.h.

{ return GetInDeg() + GetOutDeg(); }
int TNEGraph::TNode::GetId ( ) const [inline]

Definition at line 571 of file graph.h.

{ return Id; }
int TNEGraph::TNode::GetInDeg ( ) const [inline]

Definition at line 573 of file graph.h.

{ return InEIdV.Len(); }
int TNEGraph::TNode::GetInEId ( const int &  EdgeN) const [inline]

Definition at line 575 of file graph.h.

{ return InEIdV[EdgeN]; }
int TNEGraph::TNode::GetNbrEId ( const int &  EdgeN) const [inline]

Definition at line 577 of file graph.h.

{ return EdgeN<GetOutDeg()?GetOutEId(EdgeN):GetInEId(EdgeN-GetOutDeg()); }
int TNEGraph::TNode::GetOutDeg ( ) const [inline]

Definition at line 574 of file graph.h.

{ return OutEIdV.Len(); }
int TNEGraph::TNode::GetOutEId ( const int &  EdgeN) const [inline]

Definition at line 576 of file graph.h.

{ return OutEIdV[EdgeN]; }
bool TNEGraph::TNode::IsInEId ( const int &  EId) const [inline]

Definition at line 578 of file graph.h.

{ return InEIdV.SearchBin(EId) != -1; }
bool TNEGraph::TNode::IsOutEId ( const int &  EId) const [inline]

Definition at line 579 of file graph.h.

{ return OutEIdV.SearchBin(EId) != -1; }
void TNEGraph::TNode::Save ( TSOut SOut) const [inline]

Definition at line 570 of file graph.h.

{ Id.Save(SOut); InEIdV.Save(SOut); OutEIdV.Save(SOut); }

Friends And Related Function Documentation

friend class TNEGraph [friend]

Definition at line 580 of file graph.h.


Member Data Documentation

Definition at line 563 of file graph.h.

Definition at line 564 of file graph.h.

Definition at line 564 of file graph.h.


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