SNAP Library 3.0, Developer Reference  2016-07-20 17:56:49
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TNEGraph::TEdge Class Reference

#include <graph.h>

Collaboration diagram for TNEGraph::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
 

Private Attributes

TInt Id
 
TInt SrcNId
 
TInt DstNId
 

Friends

class TNEGraph
 

Detailed Description

Definition at line 611 of file graph.h.

Constructor & Destructor Documentation

TNEGraph::TEdge::TEdge ( )
inline

Definition at line 615 of file graph.h.

615 : Id(-1), SrcNId(-1), DstNId(-1) { }
TInt SrcNId
Definition: graph.h:613
TInt DstNId
Definition: graph.h:613
TNEGraph::TEdge::TEdge ( const int &  EId,
const int &  SourceNId,
const int &  DestNId 
)
inline

Definition at line 616 of file graph.h.

616 : Id(EId), SrcNId(SourceNId), DstNId(DestNId) { }
TInt SrcNId
Definition: graph.h:613
TInt DstNId
Definition: graph.h:613
TNEGraph::TEdge::TEdge ( const TEdge Edge)
inline

Definition at line 617 of file graph.h.

617 : Id(Edge.Id), SrcNId(Edge.SrcNId), DstNId(Edge.DstNId) { }
TInt SrcNId
Definition: graph.h:613
TInt DstNId
Definition: graph.h:613
TNEGraph::TEdge::TEdge ( TSIn SIn)
inline

Definition at line 618 of file graph.h.

618 : Id(SIn), SrcNId(SIn), DstNId(SIn) { }
TInt SrcNId
Definition: graph.h:613
TInt DstNId
Definition: graph.h:613

Member Function Documentation

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

Definition at line 622 of file graph.h.

References DstNId.

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

622 { return DstNId; }
TInt DstNId
Definition: graph.h:613

Here is the caller graph for this function:

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

Definition at line 620 of file graph.h.

References Id.

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

620 { return Id; }

Here is the caller graph for this function:

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

Definition at line 621 of file graph.h.

References SrcNId.

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

621 { return SrcNId; }
TInt SrcNId
Definition: graph.h:613

Here is the caller graph for this function:

void TNEGraph::TEdge::Save ( TSOut SOut) const
inline

Definition at line 619 of file graph.h.

References DstNId, Id, TInt::Save(), and SrcNId.

619 { Id.Save(SOut); SrcNId.Save(SOut); DstNId.Save(SOut); }
void Save(TSOut &SOut) const
Definition: dt.h:1060
TInt SrcNId
Definition: graph.h:613
TInt DstNId
Definition: graph.h:613

Here is the call graph for this function:

Friends And Related Function Documentation

friend class TNEGraph
friend

Definition at line 623 of file graph.h.

Member Data Documentation

TInt TNEGraph::TEdge::DstNId
private

Definition at line 613 of file graph.h.

Referenced by GetDstNId(), and Save().

TInt TNEGraph::TEdge::Id
private

Definition at line 613 of file graph.h.

Referenced by GetId(), and Save().

TInt TNEGraph::TEdge::SrcNId
private

Definition at line 613 of file graph.h.

Referenced by GetSrcNId(), and Save().


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