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
TNEANet::TEdge Class Reference

#include <network.h>

Collaboration diagram for TNEANet::TEdge:

Public Member Functions

 TEdge ()
 
 TEdge (const int &EId, const int &SourceNId, const int &DestNId)
 
 TEdge (const TEdge &Edge)
 
 TEdge (TSIn &SIn)
 
void Save (TSOut &SOut) const
 
int GetId () const
 
int GetSrcNId () const
 
int GetDstNId () const
 
void Load (TSIn &InStream)
 

Private Attributes

TInt Id
 
TInt SrcNId
 
TInt DstNId
 

Friends

class TNEANet
 

Detailed Description

Definition at line 1772 of file network.h.

Constructor & Destructor Documentation

TNEANet::TEdge::TEdge ( )
inline

Definition at line 1776 of file network.h.

1776 : Id(-1), SrcNId(-1), DstNId(-1) { }
TNEANet::TEdge::TEdge ( const int &  EId,
const int &  SourceNId,
const int &  DestNId 
)
inline

Definition at line 1777 of file network.h.

1777 : Id(EId), SrcNId(SourceNId), DstNId(DestNId) { }
TNEANet::TEdge::TEdge ( const TEdge Edge)
inline

Definition at line 1778 of file network.h.

1778 : Id(Edge.Id), SrcNId(Edge.SrcNId), DstNId(Edge.DstNId) { }
TNEANet::TEdge::TEdge ( TSIn SIn)
inline

Definition at line 1779 of file network.h.

1779 : Id(SIn), SrcNId(SIn), DstNId(SIn) { }

Member Function Documentation

int TNEANet::TEdge::GetDstNId ( ) const
inline

Definition at line 1783 of file network.h.

Referenced by TNEANet::DelEdge(), TNEANet::DelNode(), TNEANet::TNodeI::GetNbrNId(), TNEANet::IsEdge(), and TNEANet::IsOk().

1783 { return DstNId; }

Here is the caller graph for this function:

int TNEANet::TEdge::GetId ( ) const
inline

Definition at line 1781 of file network.h.

Referenced by TNEANet::IsEdge(), and TNEANet::IsOk().

1781 { return Id; }

Here is the caller graph for this function:

int TNEANet::TEdge::GetSrcNId ( ) const
inline

Definition at line 1782 of file network.h.

Referenced by TNEANet::DelEdge(), TNEANet::DelNode(), TNEANet::TNodeI::GetNbrNId(), TNEANet::IsEdge(), and TNEANet::IsOk().

1782 { return SrcNId; }

Here is the caller graph for this function:

void TNEANet::TEdge::Load ( TSIn InStream)
inline

Definition at line 1784 of file network.h.

1784  {
1785  Id = TInt(InStream);
1786  SrcNId = TInt(InStream);
1787  DstNId = TInt(InStream);
1788  }
Definition: dt.h:1137
void TNEANet::TEdge::Save ( TSOut SOut) const
inline

Definition at line 1780 of file network.h.

References TInt::Save().

1780 { Id.Save(SOut); SrcNId.Save(SOut); DstNId.Save(SOut); }
void Save(TSOut &SOut) const
Definition: dt.h:1153

Here is the call graph for this function:

Friends And Related Function Documentation

friend class TNEANet
friend

Definition at line 1789 of file network.h.

Member Data Documentation

TInt TNEANet::TEdge::DstNId
private

Definition at line 1774 of file network.h.

TInt TNEANet::TEdge::Id
private

Definition at line 1774 of file network.h.

TInt TNEANet::TEdge::SrcNId
private

Definition at line 1774 of file network.h.


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