63 #include "utility/tagged/TaggedObject.h" 64 #include "utility/actor/actor/MovableObject.h" 65 #include "utility/matrix/ID.h" 67 #define START_VERTEX_NUM 0 81 std::set<int> myAdjacency;
87 Vertex(
int tag= 0,
int ref= 0,
double weight=0,
int color =0);
91 virtual void setTmp(
int newTmp);
93 virtual int getRef(
void)
const;
96 virtual int getTmp(
void)
const;
98 virtual int addEdge(
int otherTag);
102 virtual void Print(std::ostream &os,
int flag =0);
Vertex(int tag=0, int ref=0, double weight=0, int color=0)
Constructor.
Definition: Vertex.cpp:64
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: Vertex.cpp:141
int recvSelf(const CommParameters &)
Recibe.
Definition: Vertex.cpp:169
virtual void setColor(int newColor)
Assigns a color to the vertex.
Definition: Vertex.cpp:74
virtual int addEdge(int otherTag)
Appends an edge to the vertex.
Definition: Vertex.cpp:95
virtual int getDegree(void) const
Returns the vertex degree on the graph.
Definition: Vertex.cpp:103
virtual double getWeight(void) const
Returns the weight of the vertex.
Definition: Vertex.cpp:84
virtual void setWeight(double newWeight)
Assigns a weight to the vertex.
Definition: Vertex.cpp:70
virtual int getColor(void) const
Returns the color of the vertex.
Definition: Vertex.cpp:88
Object that can move between processes.
Definition: MovableObject.h:91
Vertex of a graph.
Definition: Vertex.h:73
Object idenfied by an integer (tag).
Definition: TaggedObject.h:82
virtual const std::set< int > & getAdjacency(void) const
Return the adjacency list of the vertex in the graph.
Definition: Vertex.cpp:107
virtual void Print(std::ostream &os, int flag=0)
Prints.
Definition: Vertex.cpp:111
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
int sendSelf(CommParameters &)
Envía.
Definition: Vertex.cpp:155
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: Vertex.cpp:130