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
|
The nodes of one particular mode in a TMMNet, and their neighbor vectors as TIntV attributes. More...
#include <mmnet.h>
Classes | |
class | TNodeI |
Node iterator. Only forward iteration (operator++) is supported. More... | |
Public Types | |
typedef TModeNet | TNetMM |
Public Types inherited from TNEANet | |
typedef TNEANet | TNet |
typedef TPt< TNEANet > | PNet |
Public Member Functions | |
TModeNet () | |
TModeNet (const int &TypeId) | |
TModeNet (const int &Nodes, const int &Edges) | |
Constructor that reserves enough memory for a graph of nodes and edges. More... | |
TModeNet (const int &Nodes, const int &Edges, const int &TypeId) | |
TModeNet (const TModeNet &Graph) | |
TModeNet (TSIn &SIn) | |
Constructor for loading the graph from a (binary) stream SIn. More... | |
void | Save (TSOut &SOut) const |
Saves the graph to a (binary) stream SOut. More... | |
void | DelNode (const int &NId) |
Deletes the given node from this mode. More... | |
void | GetCrossNetNames (TStrV &Names) const |
Gets a list of CrossNets that have this Mode as either a source or destination type. More... | |
void | GetNeighborsByCrossNet (const int &NId, TStr &Name, TIntV &Neighbors, const bool isOutEId=false) const |
For the given node, gets all the neighbors for the crossnet type. If this mode is both the source and dest type, use isOutEId to specify direction. More... | |
TNodeI | BegMMNI () const |
Returns an iterator referring to the first node in the graph. More... | |
TNodeI | EndMMNI () const |
Returns an iterator referring to the past-the-end node in the graph. More... | |
TNodeI | GetMMNI (const int &NId) const |
Returns an iterator referring to the node of ID NId in the graph. More... | |
void | Clr () |
Deletes all nodes from this mode and edges from associated crossnets. More... | |
TModeNet & | operator= (const TModeNet &Graph) |
Public Member Functions inherited from TNEANet | |
TNEANet () | |
TNEANet (const int &Nodes, const int &Edges) | |
Constructor that reserves enough memory for a graph of nodes and edges. More... | |
TNEANet (const TNEANet &Graph) | |
TNEANet (TSIn &SIn) | |
Constructor for loading the graph from a (binary) stream SIn. More... | |
void | Save (TSOut &SOut) const |
Saves the graph to a (binary) stream SOut. Expects data structures for sparse attributes. More... | |
void | Save_V1 (TSOut &SOut) const |
Saves the graph to a (binary) stream SOut. Available for backwards compatibility. More... | |
bool | HasFlag (const TGraphFlag &Flag) const |
Allows for run-time checking the type of the graph (see the TGraphFlag for flags). More... | |
TNEANet & | operator= (const TNEANet &Graph) |
int | GetNodes () const |
Returns the number of nodes in the graph. More... | |
int | AddNode (int NId=-1) |
Adds a node of ID NId to the graph. More... | |
int | AddNode (const TNodeI &NodeI) |
Adds a node of ID NodeI.GetId() to the graph. More... | |
void | DelNode (const TNode &NodeI) |
Deletes node of ID NodeI.GetId() from the graph. More... | |
bool | IsNode (const int &NId) const |
Tests whether ID NId is a node. More... | |
TNodeI | BegNI () const |
Returns an iterator referring to the first node in the graph. More... | |
TNodeI | EndNI () const |
Returns an iterator referring to the past-the-end node in the graph. More... | |
TNodeI | GetNI (const int &NId) const |
Returns an iterator referring to the node of ID NId in the graph. More... | |
TAIntI | BegNAIntI (const TStr &attr) const |
Returns an iterator referring to the first node's int attribute. More... | |
TAIntI | EndNAIntI (const TStr &attr) const |
Returns an iterator referring to the past-the-end node's attribute. More... | |
TAIntI | GetNAIntI (const TStr &attr, const int &NId) const |
Returns an iterator referring to the node of ID NId in the graph. More... | |
TAIntVI | BegNAIntVI (const TStr &attr) const |
Returns an iterator referring to the first node's int attribute. More... | |
TAIntVI | EndNAIntVI (const TStr &attr) const |
Returns an iterator referring to the past-the-end node's attribute. More... | |
TAIntVI | GetNAIntVI (const TStr &attr, const int &NId) const |
Returns an iterator referring to the node of ID NId in the graph. More... | |
TAStrI | BegNAStrI (const TStr &attr) const |
Returns an iterator referring to the first node's str attribute. More... | |
TAStrI | EndNAStrI (const TStr &attr) const |
Returns an iterator referring to the past-the-end node's attribute. More... | |
TAStrI | GetNAStrI (const TStr &attr, const int &NId) const |
Returns an iterator referring to the node of ID NId in the graph. More... | |
TAFltI | BegNAFltI (const TStr &attr) const |
Returns an iterator referring to the first node's flt attribute. More... | |
TAFltI | EndNAFltI (const TStr &attr) const |
Returns an iterator referring to the past-the-end node's attribute. More... | |
TAFltI | GetNAFltI (const TStr &attr, const int &NId) const |
Returns an iterator referring to the node of ID NId in the graph. More... | |
void | AttrNameNI (const TInt &NId, TStrV &Names) const |
Returns a vector of attr names for node NId. More... | |
void | AttrNameNI (const TInt &NId, TStrIntPrH::TIter NodeHI, TStrV &Names) const |
void | AttrValueNI (const TInt &NId, TStrV &Values) const |
Returns a vector of attr values for node NId. More... | |
void | AttrValueNI (const TInt &NId, TStrIntPrH::TIter NodeHI, TStrV &Values) const |
void | IntAttrNameNI (const TInt &NId, TStrV &Names) const |
Returns a vector of int attr names for node NId. More... | |
void | IntAttrNameNI (const TInt &NId, TStrIntPrH::TIter NodeHI, TStrV &Names) const |
void | IntAttrValueNI (const TInt &NId, TIntV &Values) const |
Returns a vector of attr values for node NId. More... | |
void | IntAttrValueNI (const TInt &NId, TStrIntPrH::TIter NodeHI, TIntV &Values) const |
void | IntVAttrNameNI (const TInt &NId, TStrV &Names) const |
Returns a vector of int attr names for node NId. More... | |
void | IntVAttrNameNI (const TInt &NId, TStrIntPrH::TIter NodeHI, TStrV &Names) const |
void | IntVAttrValueNI (const TInt &NId, TVec< TIntV > &Values) const |
Returns a vector of attr values for node NId. More... | |
void | IntVAttrValueNI (const TInt &NId, TStrIntPrH::TIter NodeHI, TVec< TIntV > &Values) const |
void | StrAttrNameNI (const TInt &NId, TStrV &Names) const |
Returns a vector of str attr names for node NId. More... | |
void | StrAttrNameNI (const TInt &NId, TStrIntPrH::TIter NodeHI, TStrV &Names) const |
void | StrAttrValueNI (const TInt &NId, TStrV &Values) const |
Returns a vector of attr values for node NId. More... | |
void | StrAttrValueNI (const TInt &NId, TStrIntPrH::TIter NodeHI, TStrV &Values) const |
void | FltAttrNameNI (const TInt &NId, TStrV &Names) const |
Returns a vector of int attr names for node NId. More... | |
void | FltAttrNameNI (const TInt &NId, TStrIntPrH::TIter NodeHI, TStrV &Names) const |
void | FltAttrValueNI (const TInt &NId, TFltV &Values) const |
Returns a vector of attr values for node NId. More... | |
void | FltAttrValueNI (const TInt &NId, TStrIntPrH::TIter NodeHI, TFltV &Values) const |
void | AttrNameEI (const TInt &EId, TStrV &Names) const |
Returns a vector of attr names for edge EId. More... | |
void | AttrNameEI (const TInt &EId, TStrIntPrH::TIter EdgeHI, TStrV &Names) const |
void | AttrValueEI (const TInt &EId, TStrV &Values) const |
Returns a vector of attr values for edge EId. More... | |
void | AttrValueEI (const TInt &EId, TStrIntPrH::TIter EdgeHI, TStrV &Values) const |
void | IntAttrNameEI (const TInt &EId, TStrV &Names) const |
Returns a vector of int attr names for edge EId. More... | |
void | IntAttrNameEI (const TInt &EId, TStrIntPrH::TIter EdgeHI, TStrV &Names) const |
void | IntAttrValueEI (const TInt &EId, TIntV &Values) const |
Returns a vector of attr values for edge EId. More... | |
void | IntAttrValueEI (const TInt &EId, TStrIntPrH::TIter EdgeHI, TIntV &Values) const |
void | IntVAttrNameEI (const TInt &EId, TStrV &Names) const |
Returns a vector of int attr names for edge EId. More... | |
void | IntVAttrNameEI (const TInt &EId, TStrIntPrH::TIter EdgeHI, TStrV &Names) const |
void | IntVAttrValueEI (const TInt &EId, TVec< TIntV > &Values) const |
Returns a vector of attr values for edge EId. More... | |
void | IntVAttrValueEI (const TInt &EId, TStrIntPrH::TIter EdgeHI, TVec< TIntV > &Values) const |
void | StrAttrNameEI (const TInt &EId, TStrV &Names) const |
Returns a vector of str attr names for node NId. More... | |
void | StrAttrNameEI (const TInt &EId, TStrIntPrH::TIter EdgeHI, TStrV &Names) const |
void | StrAttrValueEI (const TInt &EId, TStrV &Values) const |
Returns a vector of attr values for node NId. More... | |
void | StrAttrValueEI (const TInt &EId, TStrIntPrH::TIter EdgeHI, TStrV &Values) const |
void | FltAttrNameEI (const TInt &EId, TStrV &Names) const |
Returns a vector of int attr names for node NId. More... | |
void | FltAttrNameEI (const TInt &EId, TStrIntPrH::TIter EdgeHI, TStrV &Names) const |
void | FltAttrValueEI (const TInt &EId, TFltV &Values) const |
Returns a vector of attr values for node NId. More... | |
void | FltAttrValueEI (const TInt &EId, TStrIntPrH::TIter EdgeHI, TFltV &Values) const |
TAIntI | BegEAIntI (const TStr &attr) const |
Returns an iterator referring to the first edge's int attribute. More... | |
TAIntI | EndEAIntI (const TStr &attr) const |
Returns an iterator referring to the past-the-end edge's attribute. More... | |
TAIntI | GetEAIntI (const TStr &attr, const int &EId) const |
Returns an iterator referring to the edge of ID EId in the graph. More... | |
TAIntVI | BegEAIntVI (const TStr &attr) const |
Returns an iterator referring to the first edge's int attribute. More... | |
TAIntVI | EndEAIntVI (const TStr &attr) const |
Returns an iterator referring to the past-the-end edge's attribute. More... | |
TAIntVI | GetEAIntVI (const TStr &attr, const int &EId) const |
Returns an iterator referring to the edge of ID EId in the graph. More... | |
TAStrI | BegEAStrI (const TStr &attr) const |
Returns an iterator referring to the first edge's str attribute. More... | |
TAStrI | EndEAStrI (const TStr &attr) const |
Returns an iterator referring to the past-the-end edge's attribute. More... | |
TAStrI | GetEAStrI (const TStr &attr, const int &EId) const |
Returns an iterator referring to the edge of ID EId in the graph. More... | |
TAFltI | BegEAFltI (const TStr &attr) const |
Returns an iterator referring to the first edge's flt attribute. More... | |
TAFltI | EndEAFltI (const TStr &attr) const |
Returns an iterator referring to the past-the-end edge's attribute. More... | |
TAFltI | GetEAFltI (const TStr &attr, const int &EId) const |
Returns an iterator referring to the edge of ID EId in the graph. More... | |
int | GetMxNId () const |
Returns an ID that is larger than any node ID in the network. More... | |
int | GetMxEId () const |
Returns an ID that is larger than any edge ID in the network. More... | |
int | GetEdges () const |
Returns the number of edges in the graph. More... | |
int | AddEdge (const int &SrcNId, const int &DstNId, int EId=-1) |
Adds an edge with ID EId between node IDs SrcNId and DstNId to the graph. More... | |
int | AddEdge (const TEdgeI &EdgeI) |
Adds an edge between EdgeI.GetSrcNId() and EdgeI.GetDstNId() to the graph. More... | |
void | DelEdge (const int &EId) |
Deletes an edge with edge ID EId from the graph. More... | |
void | DelEdge (const int &SrcNId, const int &DstNId, const bool &IsDir=true) |
Deletes all edges between node IDs SrcNId and DstNId from the graph. More... | |
bool | IsEdge (const int &EId) const |
Tests whether an edge with edge ID EId exists in the graph. More... | |
bool | IsEdge (const int &SrcNId, const int &DstNId, const bool &IsDir=true) const |
Tests whether an edge between node IDs SrcNId and DstNId exists in the graph. More... | |
bool | IsEdge (const int &SrcNId, const int &DstNId, int &EId, const bool &IsDir=true) const |
Tests whether an edge between node IDs SrcNId and DstNId exists in the graph. if an edge exists, return its edge ID in EId. More... | |
int | GetEId (const int &SrcNId, const int &DstNId) const |
Returns an edge ID between node IDs SrcNId and DstNId, if such an edge exists. Otherwise, return -1. More... | |
TEdgeI | BegEI () const |
Returns an iterator referring to the first edge in the graph. More... | |
TEdgeI | EndEI () const |
Returns an iterator referring to the past-the-end edge in the graph. More... | |
TEdgeI | GetEI (const int &EId) const |
Returns an iterator referring to edge with edge ID EId. More... | |
TEdgeI | GetEI (const int &SrcNId, const int &DstNId) const |
Returns an iterator referring to edge (SrcNId, DstNId) in the graph. More... | |
int | GetRndNId (TRnd &Rnd=TInt::Rnd) |
Returns an ID of a random node in the graph. More... | |
TNodeI | GetRndNI (TRnd &Rnd=TInt::Rnd) |
Returns an interator referring to a random node in the graph. More... | |
int | GetRndEId (TRnd &Rnd=TInt::Rnd) |
Returns an ID of a random edge in the graph. More... | |
TEdgeI | GetRndEI (TRnd &Rnd=TInt::Rnd) |
Returns an interator referring to a random edge in the graph. More... | |
void | GetNIdV (TIntV &NIdV) const |
Gets a vector IDs of all nodes in the graph. More... | |
void | GetEIdV (TIntV &EIdV) const |
Gets a vector IDs of all edges in the graph. More... | |
bool | Empty () const |
Tests whether the graph is empty (has zero nodes). More... | |
void | Clr () |
Deletes all nodes and edges from the graph. More... | |
void | Reserve (const int &Nodes, const int &Edges) |
Reserves memory for a graph of Nodes nodes and Edges edges. More... | |
void | Defrag (const bool &OnlyNodeLinks=false) |
Defragments the graph. More... | |
bool | IsOk (const bool &ThrowExcept=true) const |
Checks the graph data structure for internal consistency. More... | |
void | Dump (FILE *OutF=stdout) const |
Print the graph in a human readable form to an output stream OutF. More... | |
int | AddIntAttrDatN (const TNodeI &NodeI, const TInt &value, const TStr &attr) |
Attribute based add function for attr to Int value. More... | |
int | AddIntAttrDatN (const int &NId, const TInt &value, const TStr &attr) |
int | AddStrAttrDatN (const TNodeI &NodeI, const TStr &value, const TStr &attr) |
Attribute based add function for attr to Str value. More... | |
int | AddStrAttrDatN (const int &NId, const TStr &value, const TStr &attr) |
int | AddFltAttrDatN (const TNodeI &NodeI, const TFlt &value, const TStr &attr) |
Attribute based add function for attr to Flt value. More... | |
int | AddFltAttrDatN (const int &NId, const TFlt &value, const TStr &attr) |
int | AddIntVAttrDatN (const TNodeI &NodeI, const TIntV &value, const TStr &attr) |
Attribute based add function for attr to IntV value. More... | |
int | AddIntVAttrDatN (const int &NId, const TIntV &value, const TStr &attr) |
int | AppendIntVAttrDatN (const TNodeI &NodeI, const TInt &value, const TStr &attr) |
Appends value onto the TIntV attribute for the given node. More... | |
int | AppendIntVAttrDatN (const int &NId, const TInt &value, const TStr &attr) |
int | DelFromIntVAttrDatN (const TNodeI &NodeI, const TInt &value, const TStr &attr) |
Deletes value from the TIntV attribute for the given node. More... | |
int | DelFromIntVAttrDatN (const int &NId, const TInt &value, const TStr &attr) |
int | AddIntAttrDatE (const TEdgeI &EdgeI, const TInt &value, const TStr &attr) |
Attribute based add function for attr to Int value. More... | |
int | AddIntAttrDatE (const int &EId, const TInt &value, const TStr &attr) |
int | AddStrAttrDatE (const TEdgeI &EdgeI, const TStr &value, const TStr &attr) |
Attribute based add function for attr to Str value. More... | |
int | AddStrAttrDatE (const int &EId, const TStr &value, const TStr &attr) |
int | AddFltAttrDatE (const TEdgeI &EdgeI, const TFlt &value, const TStr &attr) |
Attribute based add function for attr to Flt value. More... | |
int | AddFltAttrDatE (const int &EId, const TFlt &value, const TStr &attr) |
int | AddIntVAttrDatE (const TEdgeI &EdgeI, const TIntV &value, const TStr &attr) |
Attribute based add function for attr to IntV value. More... | |
int | AddIntVAttrDatE (const int &EId, const TIntV &value, const TStr &attr) |
int | AppendIntVAttrDatE (const TEdgeI &EdgeI, const TInt &value, const TStr &attr) |
Appends value onto the TIntV attribute for the given node. More... | |
int | AppendIntVAttrDatE (const int &EId, const TInt &value, const TStr &attr) |
TInt | GetIntAttrDatN (const TNodeI &NodeI, const TStr &attr) |
Gets the value of int attr from the node attr value vector. More... | |
TInt | GetIntAttrDatN (const int &NId, const TStr &attr) |
TStr | GetStrAttrDatN (const TNodeI &NodeI, const TStr &attr) |
Gets the value of str attr from the node attr value vector. More... | |
TStr | GetStrAttrDatN (const int &NId, const TStr &attr) |
TFlt | GetFltAttrDatN (const TNodeI &NodeI, const TStr &attr) |
Gets the value of flt attr from the node attr value vector. More... | |
TFlt | GetFltAttrDatN (const int &NId, const TStr &attr) |
TIntV | GetIntVAttrDatN (const TNodeI &NodeI, const TStr &attr) const |
Gets the value of the intv attr from the node attr value vector. More... | |
TIntV | GetIntVAttrDatN (const int &NId, const TStr &attr) const |
int | GetIntAttrIndN (const TStr &attr) |
Gets the index of the node attr value vector specified by attr (same as GetAttrIndN for compatibility reasons). More... | |
int | GetAttrIndN (const TStr &attr) |
Gets the index of the node attr value vector specified by attr . More... | |
TInt | GetIntAttrIndDatN (const TNodeI &NodeI, const int &index) |
Gets the value of an int node attr specified by node iterator NodeI and the attr index . More... | |
TInt | GetIntAttrIndDatN (const int &NId, const int &index) |
Gets the value of an int node attr specified by node ID NId and the attr index . More... | |
TStr | GetStrAttrIndDatN (const TNodeI &NodeI, const int &index) |
Gets the value of a string node attr specified by node iterator NodeI and the attr index . More... | |
TStr | GetStrAttrIndDatN (const int &NId, const int &index) |
Gets the value of a string node attr specified by node ID NId and the attr index . More... | |
TFlt | GetFltAttrIndDatN (const TNodeI &NodeI, const int &index) |
Gets the value of a float node attr specified by node iterator NodeI and the attr index . More... | |
TFlt | GetFltAttrIndDatN (const int &NId, const int &index) |
Gets the value of a float node attr specified by node ID NId and the attr index . More... | |
TInt | GetIntAttrDatE (const TEdgeI &EdgeI, const TStr &attr) |
Gets the value of int attr from the edge attr value vector. More... | |
TInt | GetIntAttrDatE (const int &EId, const TStr &attr) |
TStr | GetStrAttrDatE (const TEdgeI &EdgeI, const TStr &attr) |
Gets the value of str attr from the edge attr value vector. More... | |
TStr | GetStrAttrDatE (const int &EId, const TStr &attr) |
TFlt | GetFltAttrDatE (const TEdgeI &EdgeI, const TStr &attr) |
Gets the value of flt attr from the edge attr value vector. More... | |
TFlt | GetFltAttrDatE (const int &EId, const TStr &attr) |
TIntV | GetIntVAttrDatE (const TEdgeI &EdgeI, const TStr &attr) |
Gets the value of the intv attr from the edge attr value vector. More... | |
TIntV | GetIntVAttrDatE (const int &EId, const TStr &attr) |
int | GetIntAttrIndE (const TStr &attr) |
Gets the index of the edge attr value vector specified by attr (same as GetAttrIndE for compatibility reasons). More... | |
int | GetAttrIndE (const TStr &attr) |
Gets the index of the edge attr value vector specified by attr . More... | |
TInt | GetIntAttrIndDatE (const TEdgeI &EdgeI, const int &index) |
Gets the value of an int edge attr specified by edge iterator EdgeI and the attr index . More... | |
TInt | GetIntAttrIndDatE (const int &EId, const int &index) |
Gets the value of an int edge attr specified by edge ID EId and the attr index . More... | |
TFlt | GetFltAttrIndDatE (const TEdgeI &EdgeI, const int &index) |
Gets the value of a float edge attr specified by edge iterator EdgeI and the attr index . More... | |
TFlt | GetFltAttrIndDatE (const int &EId, const int &index) |
Gets the value of an int edge attr specified by edge ID EId and the attr index . More... | |
TStr | GetStrAttrIndDatE (const TEdgeI &EdgeI, const int &index) |
Gets the value of a string edge attr specified by edge iterator EdgeI and the attr index . More... | |
TStr | GetStrAttrIndDatE (const int &EId, const int &index) |
Gets the value of an int edge attr specified by edge ID EId and the attr index . More... | |
int | DelAttrDatN (const TNodeI &NodeI, const TStr &attr) |
Deletes the node attribute for NodeI. More... | |
int | DelAttrDatN (const int &NId, const TStr &attr) |
int | DelAttrDatE (const TEdgeI &EdgeI, const TStr &attr) |
Deletes the edge attribute for NodeI. More... | |
int | DelAttrDatE (const int &EId, const TStr &attr) |
int | AddIntAttrN (const TStr &attr, TInt defaultValue=TInt::Mn) |
Adds a new Int node attribute to the hashmap. More... | |
int | AddStrAttrN (const TStr &attr, TStr defaultValue=TStr::GetNullStr()) |
Adds a new Str node attribute to the hashmap. More... | |
int | AddFltAttrN (const TStr &attr, TFlt defaultValue=TFlt::Mn) |
Adds a new Flt node attribute to the hashmap. More... | |
int | AddIntVAttrN (const TStr &attr) |
Adds a new IntV node attribute to the hashmap. More... | |
int | AddIntAttrE (const TStr &attr, TInt defaultValue=TInt::Mn) |
Adds a new Int edge attribute to the hashmap. More... | |
int | AddStrAttrE (const TStr &attr, TStr defaultValue=TStr::GetNullStr()) |
Adds a new Str edge attribute to the hashmap. More... | |
int | AddFltAttrE (const TStr &attr, TFlt defaultValue=TFlt::Mn) |
Adds a new Flt edge attribute to the hashmap. More... | |
int | AddIntVAttrE (const TStr &attr) |
Adds a new IntV edge attribute to the hashmap. More... | |
int | DelAttrN (const TStr &attr) |
Removes all the values for node attr. More... | |
int | DelAttrE (const TStr &attr) |
Removes all the values for edge attr. More... | |
bool | IsAttrDeletedN (const int &NId, const TStr &attr) const |
Returns true if attr exists for node NId and has default value. More... | |
bool | IsIntAttrDeletedN (const int &NId, const TStr &attr) const |
Returns true if Int attr exists for node NId and has default value. More... | |
bool | IsIntVAttrDeletedN (const int &NId, const TStr &attr) const |
Returns true if IntV attr exists for node NId and is an empty vector. More... | |
bool | IsStrAttrDeletedN (const int &NId, const TStr &attr) const |
Returns true if Str attr exists for node NId and has default value. More... | |
bool | IsFltAttrDeletedN (const int &NId, const TStr &attr) const |
Returns true if Flt attr exists for node NId and has default value. More... | |
bool | NodeAttrIsDeleted (const int &NId, const TStrIntPrH::TIter &NodeHI) const |
Returns true if NId attr deleted for current node attr iterator. More... | |
bool | NodeAttrIsIntDeleted (const int &NId, const TStrIntPrH::TIter &NodeHI) const |
Returns true if NId attr deleted value for current node int attr iterator. More... | |
bool | NodeAttrIsIntVDeleted (const int &NId, const TStrIntPrH::TIter &NodeHI) const |
Returns true if NId attr deleted value for current node int vector attr iterator. More... | |
bool | NodeAttrIsStrDeleted (const int &NId, const TStrIntPrH::TIter &NodeHI) const |
Returns true if NId attr deleted value for current node str attr iterator. More... | |
bool | NodeAttrIsFltDeleted (const int &NId, const TStrIntPrH::TIter &NodeHI) const |
Returns true if NId attr deleted value for current node flt attr iterator. More... | |
bool | IsAttrDeletedE (const int &EId, const TStr &attr) const |
Returns true if attr exists for edge EId and has default value. More... | |
bool | IsIntAttrDeletedE (const int &EId, const TStr &attr) const |
Returns true if Int attr exists for edge EId and has default value. More... | |
bool | IsIntVAttrDeletedE (const int &EId, const TStr &attr) const |
Returns true if IntV attr exists for edge EId and is an empty vector. More... | |
bool | IsStrAttrDeletedE (const int &EId, const TStr &attr) const |
Returns true if Str attr exists for edge NId and has default value. More... | |
bool | IsFltAttrDeletedE (const int &EId, const TStr &attr) const |
Returns true if Flt attr exists for edge NId and has default value. More... | |
bool | EdgeAttrIsDeleted (const int &EId, const TStrIntPrH::TIter &EdgeHI) const |
Returns true if EId attr deleted for current edge attr iterator. More... | |
bool | EdgeAttrIsIntDeleted (const int &EId, const TStrIntPrH::TIter &EdgeHI) const |
Returns true if EId attr deleted for current edge int attr iterator. More... | |
bool | EdgeAttrIsIntVDeleted (const int &EId, const TStrIntPrH::TIter &EdgeHI) const |
Returns true if EId attr deleted for current edge int vector attr iterator. More... | |
bool | EdgeAttrIsStrDeleted (const int &EId, const TStrIntPrH::TIter &EdgeHI) const |
Returns true if EId attr deleted for current edge str attr iterator. More... | |
bool | EdgeAttrIsFltDeleted (const int &EId, const TStrIntPrH::TIter &EdgeHI) const |
Returns true if EId attr deleted for current edge flt attr iterator. More... | |
TStr | GetNodeAttrValue (const int &NId, const TStrIntPrH::TIter &NodeHI) const |
Returns node attribute value, converted to Str type. More... | |
TStr | GetEdgeAttrValue (const int &EId, const TStrIntPrH::TIter &EdgeHI) const |
Returns edge attribute value, converted to Str type. More... | |
TFlt | GetWeightOutEdges (const TNodeI &NI, const TStr &attr) |
Gets the sum of the weights of all the outgoing edges of the node. More... | |
bool | IsFltAttrE (const TStr &attr) |
Checks if there is an edge attribute with name attr. More... | |
bool | IsIntAttrE (const TStr &attr) |
Checks if there is an edge attribute with name attr. More... | |
bool | IsStrAttrE (const TStr &attr) |
Checks if there is an edge attribute with name attr. More... | |
TVec< TFlt > & | GetFltAttrVecE (const TStr &attr) |
Gets Vector for the Flt Attribute attr. More... | |
int | GetFltKeyIdE (const int &EId) |
Gets keyid for edge with id EId. More... | |
void | GetWeightOutEdgesV (TFltV &OutWeights, const TFltV &AttrVal) |
Fills OutWeights with the outgoing weight from each node. More... | |
void | GetAttrNNames (TStrV &IntAttrNames, TStrV &FltAttrNames, TStrV &StrAttrNames) const |
Fills each of the vectors with the names of node attributes of the given type. More... | |
void | GetAttrENames (TStrV &IntAttrNames, TStrV &FltAttrNames, TStrV &StrAttrNames) const |
Fills each of the vectors with the names of edge attributes of the given type. More... | |
int | AddSAttrDatN (const TInt &NId, const TStr &AttrName, const TInt &Val) |
Adds Int sparse attribute with name AttrName to the given node with id NId . More... | |
int | AddSAttrDatN (const TInt &NId, const TInt &AttrId, const TInt &Val) |
Adds Int sparse attribute with id AttrId to the given node with id NId . More... | |
int | AddSAttrDatN (const TNodeI &NodeI, const TStr &AttrName, const TInt &Val) |
Adds Int sparse attribute with name AttrName to NodeI . More... | |
int | AddSAttrDatN (const TNodeI &NodeI, const TInt &AttrId, const TInt &Val) |
Adds Int sparse attribute with id AttrId to NodeI . More... | |
int | AddSAttrDatN (const TInt &NId, const TStr &AttrName, const TFlt &Val) |
Adds Flt sparse attribute with name AttrName to the given node with id NId . More... | |
int | AddSAttrDatN (const TInt &NId, const TInt &AttrId, const TFlt &Val) |
Adds Flt sparse attribute with id AttrId to the given node with id NId . More... | |
int | AddSAttrDatN (const TNodeI &NodeI, const TStr &AttrName, const TFlt &Val) |
Adds Flt sparse attribute with name AttrName to NodeI . More... | |
int | AddSAttrDatN (const TNodeI &NodeI, const TInt &AttrId, const TFlt &Val) |
Adds Flt sparse attribute with id AttrId to NodeI . More... | |
int | AddSAttrDatN (const TInt &NId, const TStr &AttrName, const TStr &Val) |
Adds Str sparse attribute with name AttrName to the given node with id NId . More... | |
int | AddSAttrDatN (const TInt &NId, const TInt &AttrId, const TStr &Val) |
Adds Str sparse attribute with id AttrId to the given node with id NId . More... | |
int | AddSAttrDatN (const TNodeI &NodeI, const TStr &AttrName, const TStr &Val) |
Adds Str sparse attribute with name AttrName to NodeI . More... | |
int | AddSAttrDatN (const TNodeI &NodeI, const TInt &AttrId, const TStr &Val) |
Adds Str sparse attribute with id AttrId to NodeI . More... | |
int | GetSAttrDatN (const TInt &NId, const TStr &AttrName, TInt &ValX) const |
Gets Int sparse attribute with name AttrName from node with id NId . More... | |
int | GetSAttrDatN (const TInt &NId, const TInt &AttrId, TInt &ValX) const |
Gets Int sparse attribute with id AttrId from node with id NId . More... | |
int | GetSAttrDatN (const TNodeI &NodeI, const TStr &AttrName, TInt &ValX) const |
Gets Int sparse attribute with name AttrName from NodeI . More... | |
int | GetSAttrDatN (const TNodeI &NodeI, const TInt &AttrId, TInt &ValX) const |
Gets Int sparse attribute with id AttrId from NodeI . More... | |
int | GetSAttrDatN (const TInt &NId, const TStr &AttrName, TFlt &ValX) const |
Gets Flt sparse attribute with name AttrName from node with id NId . More... | |
int | GetSAttrDatN (const TInt &NId, const TInt &AttrId, TFlt &ValX) const |
Gets Flt sparse attribute with id AttrId from node with id NId . More... | |
int | GetSAttrDatN (const TNodeI &NodeI, const TStr &AttrName, TFlt &ValX) const |
Gets Flt sparse attribute with name AttrName from NodeI . More... | |
int | GetSAttrDatN (const TNodeI &NodeI, const TInt &AttrId, TFlt &ValX) const |
Gets Flt sparse attribute with id AttrId from NodeI . More... | |
int | GetSAttrDatN (const TInt &NId, const TStr &AttrName, TStr &ValX) const |
Gets Str sparse attribute with name AttrName from node with id NId . More... | |
int | GetSAttrDatN (const TInt &NId, const TInt &AttrId, TStr &ValX) const |
Gets Str sparse attribute with id AttrId from node with id NId . More... | |
int | GetSAttrDatN (const TNodeI &NodeI, const TStr &AttrName, TStr &ValX) const |
Gets Str sparse attribute with name AttrName from NodeI . More... | |
int | GetSAttrDatN (const TNodeI &NodeI, const TInt &AttrId, TStr &ValX) const |
Gets Str sparse attribute with id AttrId from NodeI . More... | |
int | DelSAttrDatN (const TInt &NId, const TStr &AttrName) |
Deletes sparse attribute with name AttrName from node with id NId . More... | |
int | DelSAttrDatN (const TInt &NId, const TInt &AttrId) |
Deletes sparse attribute with id AttrId from node with id NId . More... | |
int | DelSAttrDatN (const TNodeI &NodeI, const TStr &AttrName) |
Deletes sparse attribute with name AttrName from NodeI . More... | |
int | DelSAttrDatN (const TNodeI &NodeI, const TInt &AttrId) |
Deletes sparse attribute with id AttrId from NodeI . More... | |
int | GetSAttrVN (const TInt &NId, const TAttrType AttrType, TAttrPrV &AttrV) const |
Gets a list of all sparse attributes of type AttrType for node with id NId . More... | |
int | GetSAttrVN (const TNodeI &NodeI, const TAttrType AttrType, TAttrPrV &AttrV) const |
Gets a list of all sparse attributes of type AttrType for NodeI . More... | |
int | GetIdVSAttrN (const TStr &AttrName, TIntV &IdV) const |
Gets a list of all nodes that have a sparse attribute with name AttrName . More... | |
int | GetIdVSAttrN (const TInt &AttrId, TIntV &IdV) const |
Gets a list of all nodes that have a sparse attribute with id AttrId . More... | |
int | AddSAttrN (const TStr &Name, const TAttrType &AttrType, TInt &AttrId) |
Adds mapping for sparse attribute with name Name and type AttrType . More... | |
int | GetSAttrIdN (const TStr &Name, TInt &AttrIdX, TAttrType &AttrTypeX) const |
Gets id and type for attribute with name Name . More... | |
int | GetSAttrNameN (const TInt &AttrId, TStr &NameX, TAttrType &AttrTypeX) const |
Gets name and type for attribute with id AttrId . More... | |
int | AddSAttrDatE (const TInt &EId, const TStr &AttrName, const TInt &Val) |
Adds Int sparse attribute with name AttrName to the given edge with id EId . More... | |
int | AddSAttrDatE (const TInt &EId, const TInt &AttrId, const TInt &Val) |
Adds Int sparse attribute with id AttrId to the given edge with id EId . More... | |
int | AddSAttrDatE (const TEdgeI &EdgeI, const TStr &AttrName, const TInt &Val) |
Adds Int sparse attribute with name AttrName to EdgeI . More... | |
int | AddSAttrDatE (const TEdgeI &EdgeI, const TInt &AttrId, const TInt &Val) |
Adds Int sparse attribute with id AttrId to EdgeI . More... | |
int | AddSAttrDatE (const TInt &EId, const TStr &AttrName, const TFlt &Val) |
Adds Flt sparse attribute with name AttrName to the given edge with id EId . More... | |
int | AddSAttrDatE (const TInt &EId, const TInt &AttrId, const TFlt &Val) |
Adds Flt sparse attribute with id AttrId to the given edge with id EId . More... | |
int | AddSAttrDatE (const TEdgeI &EdgeI, const TStr &AttrName, const TFlt &Val) |
Adds Flt sparse attribute with name AttrName to EdgeI . More... | |
int | AddSAttrDatE (const TEdgeI &EdgeI, const TInt &AttrId, const TFlt &Val) |
Adds Flt sparse attribute with id AttrId to EdgeI . More... | |
int | AddSAttrDatE (const TInt &EId, const TStr &AttrName, const TStr &Val) |
Adds Str sparse attribute with name AttrName to the given edge with id EId . More... | |
int | AddSAttrDatE (const TInt &EId, const TInt &AttrId, const TStr &Val) |
Adds Str sparse attribute with id AttrId to the given edge with id EId . More... | |
int | AddSAttrDatE (const TEdgeI &EdgeI, const TStr &AttrName, const TStr &Val) |
Adds Str sparse attribute with name AttrName to EdgeI . More... | |
int | AddSAttrDatE (const TEdgeI &EdgeI, const TInt &AttrId, const TStr &Val) |
Adds Str sparse attribute with id AttrId to EdgeI . More... | |
int | GetSAttrDatE (const TInt &EId, const TStr &AttrName, TInt &ValX) const |
Gets Int sparse attribute with name AttrName from edge with id EId . More... | |
int | GetSAttrDatE (const TInt &EId, const TInt &AttrId, TInt &ValX) const |
Gets Int sparse attribute with id AttrId from edge with id EId . More... | |
int | GetSAttrDatE (const TEdgeI &EdgeI, const TStr &AttrName, TInt &ValX) const |
Gets Int sparse attribute with name AttrName from EdgeI . More... | |
int | GetSAttrDatE (const TEdgeI &EdgeI, const TInt &AttrId, TInt &ValX) const |
Gets Int sparse attribute with id AttrId from EdgeI . More... | |
int | GetSAttrDatE (const TInt &EId, const TStr &AttrName, TFlt &ValX) const |
Gets Flt sparse attribute with name AttrName from edge with id EId . More... | |
int | GetSAttrDatE (const TInt &EId, const TInt &AttrId, TFlt &ValX) const |
Gets Flt sparse attribute with id AttrId from edge with id EId . More... | |
int | GetSAttrDatE (const TEdgeI &EdgeI, const TStr &AttrName, TFlt &ValX) const |
Gets Flt sparse attribute with name AttrName from EdgeI . More... | |
int | GetSAttrDatE (const TEdgeI &EdgeI, const TInt &AttrId, TFlt &ValX) const |
Gets Flt sparse attribute with id AttrId from EdgeI . More... | |
int | GetSAttrDatE (const TInt &EId, const TStr &AttrName, TStr &ValX) const |
Gets Str sparse attribute with name AttrName from edge with id EId . More... | |
int | GetSAttrDatE (const TInt &EId, const TInt &AttrId, TStr &ValX) const |
Gets Str sparse attribute with id AttrId from edge with id EId . More... | |
int | GetSAttrDatE (const TEdgeI &EdgeI, const TStr &AttrName, TStr &ValX) const |
Gets Str sparse attribute with name AttrName from EdgeI . More... | |
int | GetSAttrDatE (const TEdgeI &EdgeI, const TInt &AttrId, TStr &ValX) const |
Gets Str sparse attribute with id AttrId from EdgeI . More... | |
int | DelSAttrDatE (const TInt &EId, const TStr &AttrName) |
Deletes sparse attribute with name AttrName from edge with id EId . More... | |
int | DelSAttrDatE (const TInt &EId, const TInt &AttrId) |
Deletes sparse attribute with id AttrId from edge with id EId . More... | |
int | DelSAttrDatE (const TEdgeI &EdgeI, const TStr &AttrName) |
Deletes sparse attribute with name AttrName from EdgeI . More... | |
int | DelSAttrDatE (const TEdgeI &EdgeI, const TInt &AttrId) |
Deletes sparse attribute with id AttrId from EdgeI . More... | |
int | GetSAttrVE (const TInt &EId, const TAttrType AttrType, TAttrPrV &AttrV) const |
Gets a list of all sparse attributes of type AttrType for edge with id EId . More... | |
int | GetSAttrVE (const TEdgeI &EdgeI, const TAttrType AttrType, TAttrPrV &AttrV) const |
Gets a list of all sparse attributes of type AttrType for EdgeI . More... | |
int | GetIdVSAttrE (const TStr &AttrName, TIntV &IdV) const |
Gets a list of all edges that have a sparse attribute with name AttrName . More... | |
int | GetIdVSAttrE (const TInt &AttrId, TIntV &IdV) const |
Gets a list of all edges that have a sparse attribute with id AttrId . More... | |
int | AddSAttrE (const TStr &Name, const TAttrType &AttrType, TInt &AttrId) |
Adds mapping for sparse attribute with name Name and type AttrType . More... | |
int | GetSAttrIdE (const TStr &Name, TInt &AttrIdX, TAttrType &AttrTypeX) const |
Gets id and type for attribute with name Name . More... | |
int | GetSAttrNameE (const TInt &AttrId, TStr &NameX, TAttrType &AttrTypeX) const |
Gets name and type for attribute with id AttrId . More... | |
Private Member Functions | |
TModeNet (const TModeNet &Graph, bool isSubModeGraph) | |
int | AddNeighbor (const int &NId, const int &EId, const bool outEdge, const int linkId, const bool sameMode, bool isDir) |
int | AddNeighbor (const int &NId, const int &EId, const bool outEdge, const TStr &linkName, const bool sameMode, bool isDir) |
int | DelNeighbor (const int &NId, const int &EId, bool outEdge, const TStr &CrossName, const bool sameMode, bool isDir) |
int | DelNeighbor (const int &NId, const int &EId, bool outEdge, const TInt &linkId, const bool sameMode, bool isDir) |
TStr | GetNeighborCrossName (const TStr &CrossName, bool isOutEdge, const bool sameMode, bool isDir) const |
void | SetParentPointer (TMMNet *parent) |
int | AddNbrType (const TStr &CrossName, const bool sameMode, bool isDir) |
int | AddIntVAttrByVecN (const TStr &attr, TVec< TIntV > &Attrs) |
Adds a new TIntV node attribute to the hashmap. More... | |
void | RemoveCrossNets (TModeNet &Result, TStrV &CrossNets) |
int | DelNbrType (const TStr &CrossName) |
int | GetAttrTypeN (const TStr &attr) const |
void | ClrNbr (const TStr &CrossNetName, const bool &outEdge, const bool &sameMode, bool &isDir) |
Private Attributes | |
TInt | ModeId |
TMMNet * | MMNet |
THash< TStr, TBool > | NeighborTypes |
Friends | |
class | TMMNet |
class | TCrossNet |
Additional Inherited Members | |
Static Public Member Functions inherited from TNEANet | |
static PNEANet | New () |
Static cons returns pointer to graph. Ex: PNEANet Graph=TNEANet::New(). More... | |
static PNEANet | New (const int &Nodes, const int &Edges) |
Static constructor that returns a pointer to the graph and reserves enough memory for Nodes nodes and Edges edges. More... | |
static PNEANet | Load (TSIn &SIn) |
Static constructor that loads the graph from a stream SIn and returns a pointer to it. More... | |
static PNEANet | Load_V1 (TSIn &SIn) |
Static constructor that loads the graph from a stream SIn and returns a pointer to it. Backwards compatible. More... | |
static PNEANet | GetSmallGraph () |
Returns a small multigraph on 5 nodes and 6 edges. More... | |
Public Attributes inherited from TNEANet | |
TCRef | CRef |
Protected Types inherited from TNEANet | |
enum | { IntType, StrType, FltType, IntVType } |
Protected Member Functions inherited from TNEANet | |
TNode & | GetNode (const int &NId) |
const TNode & | GetNode (const int &NId) const |
TEdge & | GetEdge (const int &EId) |
const TEdge & | GetEdge (const int &EId) const |
TInt | GetIntAttrDefaultN (const TStr &attribute) const |
Gets Int node attribute val. If not a proper attr, return default. More... | |
TStr | GetStrAttrDefaultN (const TStr &attribute) const |
Gets Str node attribute val. If not a proper attr, return default. More... | |
TFlt | GetFltAttrDefaultN (const TStr &attribute) const |
Gets Flt node attribute val. If not a proper attr, return default. More... | |
TInt | GetIntAttrDefaultE (const TStr &attribute) const |
Gets Int edge attribute val. If not a proper attr, return default. More... | |
TStr | GetStrAttrDefaultE (const TStr &attribute) const |
Gets Str edge attribute val. If not a proper attr, return default. More... | |
TFlt | GetFltAttrDefaultE (const TStr &attribute) const |
Gets Flt edge attribute val. If not a proper attr, return default. More... | |
TNEANet (const TNEANet &Graph, bool modeSubGraph) | |
TNEANet (bool copyAll, const TNEANet &Graph) | |
Protected Attributes inherited from TNEANet | |
TInt | MxNId |
TInt | MxEId |
THash< TInt, TNode > | NodeH |
THash< TInt, TEdge > | EdgeH |
TStrIntPrH | KeyToIndexTypeN |
KeyToIndexType[N|E]: Key->(Type,Index). More... | |
TStrIntPrH | KeyToIndexTypeE |
THash< TStr, TInt > | IntDefaultsN |
THash< TStr, TInt > | IntDefaultsE |
THash< TStr, TStr > | StrDefaultsN |
THash< TStr, TStr > | StrDefaultsE |
THash< TStr, TFlt > | FltDefaultsN |
THash< TStr, TFlt > | FltDefaultsE |
TVec< TIntV > | VecOfIntVecsN |
TVec< TIntV > | VecOfIntVecsE |
TVec< TStrV > | VecOfStrVecsN |
TVec< TStrV > | VecOfStrVecsE |
TVec< TFltV > | VecOfFltVecsN |
TVec< TFltV > | VecOfFltVecsE |
TVec< TVec< TIntV > > | VecOfIntVecVecsN |
TVec< TVec< TIntV > > | VecOfIntVecVecsE |
TAttr | SAttrN |
TAttr | SAttrE |
The nodes of one particular mode in a TMMNet, and their neighbor vectors as TIntV attributes.
The class corresponding to one particular mode in a TMMNet. This class contains only the set of nodes in that mode, and does not explicitly model edges. For easy access to neighbors, there is a dense TIntV attribute for each CrossNet, which is a vector of edge ids of neighbors of our mode in that CrossNet.
typedef TModeNet TModeNet::TNetMM |
|
inline |
Definition at line 51 of file mmnet.h.
Referenced by RemoveCrossNets().
|
inlineexplicit |
|
inlineexplicit |
|
inline |
Definition at line 58 of file mmnet.h.
|
inline |
|
inlineprivate |
Adds a new TIntV node attribute to the hashmap.
Definition at line 117 of file mmnet.cpp.
References THash< TKey, TDat, THashFunc >::AddDat(), TNEANet::IntVType, TNEANet::KeyToIndexTypeN, and TNEANet::VecOfIntVecVecsN.
Referenced by RemoveCrossNets().
|
private |
Definition at line 82 of file mmnet.cpp.
References THash< TKey, TDat, THashFunc >::AddDat(), THash< TKey, TDat, THashFunc >::IsKey(), and NeighborTypes.
Referenced by TMMNet::AddCrossNet(), AddNeighbor(), and RemoveCrossNets().
|
private |
Definition at line 31 of file mmnet.cpp.
References TMMNet::GetCrossName(), and MMNet.
Referenced by TCrossNet::AddEdge().
|
private |
Definition at line 36 of file mmnet.cpp.
References AddNbrType(), TNEANet::AppendIntVAttrDatN(), GetNeighborCrossName(), THash< TKey, TDat, THashFunc >::IsKey(), and NeighborTypes.
|
inline |
Returns an iterator referring to the first node in the graph.
Definition at line 76 of file mmnet.h.
References THash< TKey, TDat, THashFunc >::BegI(), and TNEANet::NodeH.
Referenced by TMMNet::ToNetwork(), and TMMNet::ToNetwork2().
void TModeNet::Clr | ( | ) |
Deletes all nodes from this mode and edges from associated crossnets.
Definition at line 22 of file mmnet.cpp.
References TCrossNet::Clr(), TNEANet::Clr(), TMMNet::GetCrossNetByName(), THash< TKey, TDat, THashFunc >::GetKeyV(), TVec< TVal, TSizeTy >::Len(), MMNet, and NeighborTypes.
|
private |
Definition at line 15 of file mmnet.cpp.
References THash< TKey, TDat, THashFunc >::GetDat(), GetNeighborCrossName(), TNEANet::KeyToIndexTypeN, TNEANet::MxNId, TPair< TVal1, TVal2 >::Val2, and TNEANet::VecOfIntVecVecsN.
|
private |
Definition at line 90 of file mmnet.cpp.
References TNEANet::DelAttrN(), THash< TKey, TDat, THashFunc >::DelKey(), THash< TKey, TDat, THashFunc >::GetDat(), GetNeighborCrossName(), and NeighborTypes.
|
private |
Definition at line 44 of file mmnet.cpp.
References TNEANet::DelFromIntVAttrDatN(), GetNeighborCrossName(), THash< TKey, TDat, THashFunc >::IsKey(), and NeighborTypes.
Referenced by TCrossNet::DelEdge(), and DelNeighbor().
|
private |
Definition at line 52 of file mmnet.cpp.
References DelNeighbor(), TMMNet::GetCrossName(), and MMNet.
|
virtual |
Deletes the given node from this mode.
Reimplemented from TNEANet.
Definition at line 57 of file mmnet.cpp.
References TCrossNet::DelEdge(), TNEANet::DelNode(), TMMNet::GetCrossNetByName(), GetCrossNetNames(), GetNeighborsByCrossNet(), TCrossNet::IsDirect, TVec< TVal, TSizeTy >::Len(), MMNet, TCrossNet::Mode1, and TCrossNet::Mode2.
|
inline |
Returns an iterator referring to the past-the-end node in the graph.
Definition at line 78 of file mmnet.h.
References THash< TKey, TDat, THashFunc >::EndI(), and TNEANet::NodeH.
Referenced by TMMNet::ToNetwork(), and TMMNet::ToNetwork2().
|
private |
Definition at line 159 of file mmnet.cpp.
References THash< TKey, TDat, THashFunc >::GetDat(), THash< TKey, TDat, THashFunc >::IsKey(), TNEANet::KeyToIndexTypeN, and TPair< TVal1, TVal2 >::Val1.
Referenced by TMMNet::AddNodeAttributes(), and TMMNet::ToNetwork().
|
inline |
Gets a list of CrossNets that have this Mode as either a source or destination type.
Definition at line 71 of file mmnet.h.
References THash< TKey, TDat, THashFunc >::GetKeyV(), and NeighborTypes.
Referenced by TMMNet::DelModeNet(), DelNode(), and TModeNet::TNodeI::GetCrossNetNames().
|
inline |
Returns an iterator referring to the node of ID NId in the graph.
Definition at line 80 of file mmnet.h.
References THash< TKey, TDat, THashFunc >::GetI(), and TNEANet::NodeH.
|
private |
Definition at line 4 of file mmnet.cpp.
Referenced by AddNeighbor(), ClrNbr(), DelNbrType(), DelNeighbor(), and GetNeighborsByCrossNet().
void TModeNet::GetNeighborsByCrossNet | ( | const int & | NId, |
TStr & | Name, | ||
TIntV & | Neighbors, | ||
const bool | isOutEId = false |
||
) | const |
For the given node, gets all the neighbors for the crossnet type. If this mode is both the source and dest type, use isOutEId to specify direction.
Definition at line 106 of file mmnet.cpp.
References THash< TKey, TDat, THashFunc >::GetDat(), TNEANet::GetIntVAttrDatN(), GetNeighborCrossName(), and NeighborTypes.
Referenced by DelNode(), TModeNet::TNodeI::GetNeighborsByCrossNet(), and TMMNet::ToNetworkMP().
Definition at line 85 of file mmnet.h.
References TNEANet::EdgeH, TNEANet::FltDefaultsE, TNEANet::FltDefaultsN, TNEANet::IntDefaultsE, TNEANet::IntDefaultsN, TNEANet::KeyToIndexTypeE, TNEANet::KeyToIndexTypeN, MMNet, ModeId, TNEANet::MxEId, TNEANet::MxNId, NeighborTypes, TNEANet::NodeH, TNEANet::SAttrE, TNEANet::SAttrN, TNEANet::StrDefaultsE, TNEANet::StrDefaultsN, TNEANet::VecOfFltVecsE, TNEANet::VecOfFltVecsN, TNEANet::VecOfIntVecsE, TNEANet::VecOfIntVecsN, TNEANet::VecOfIntVecVecsE, TNEANet::VecOfIntVecVecsN, TNEANet::VecOfStrVecsE, and TNEANet::VecOfStrVecsN.
Definition at line 126 of file mmnet.cpp.
References THash< TKey, TDat, THashFunc >::AddDat(), AddIntVAttrByVecN(), AddNbrType(), THash< TKey, TDat, THashFunc >::BegI(), THash< TKey, TDat, THashFunc >::EndI(), THash< TKey, TDat, THashFunc >::GetDat(), TStr::GetSubStr(), TNEANet::IntVType, TVec< TVal, TSizeTy >::IsIn(), THash< TKey, TDat, THashFunc >::IsKey(), TStr::IsSuffix(), TNEANet::KeyToIndexTypeN, TStr::Len(), NeighborTypes, TModeNet(), and TNEANet::VecOfIntVecVecsN.
|
inline |
Saves the graph to a (binary) stream SOut.
Definition at line 65 of file mmnet.h.
References ModeId, NeighborTypes, THash< TKey, TDat, THashFunc >::Save(), TInt::Save(), and TNEANet::Save().
|
private |
Definition at line 78 of file mmnet.cpp.
References MMNet.
Referenced by TMMNet::AddModeNet(), and TMMNet::DelModeNet().
|
private |
Definition at line 47 of file mmnet.h.
Referenced by AddNeighbor(), Clr(), DelNeighbor(), DelNode(), operator=(), and SetParentPointer().
|
private |
Definition at line 46 of file mmnet.h.
Referenced by TMMNet::GetSubgraphByCrossNet(), TMMNet::GetSubgraphByModeNet(), operator=(), and Save().
Definition at line 48 of file mmnet.h.
Referenced by AddNbrType(), AddNeighbor(), Clr(), DelNbrType(), DelNeighbor(), GetCrossNetNames(), GetNeighborsByCrossNet(), operator=(), RemoveCrossNets(), Save(), and TMMNet::ToNetworkMP().