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 87 std::set<int> myAdjacency;
93 Vertex(
int tag= 0,
int ref= 0,
double weight=0,
int color =0);
97 virtual void setTmp(
int newTmp);
99 virtual int getRef(
void)
const;
102 virtual int getTmp(
void)
const;
104 virtual int addEdge(
int otherTag);
108 virtual void Print(std::ostream &os,
int flag =0);
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: Vertex.cpp:157
virtual void setWeight(double newWeight)
Assigns a weight to the vertex.
Definition: Vertex.cpp:74
Vertex of a graph.
Definition: Vertex.h:79
int sendSelf(CommParameters &)
Send vertex data.
Definition: Vertex.cpp:182
virtual void Print(std::ostream &os, int flag=0)
Print stuff.
Definition: Vertex.cpp:138
virtual double getWeight(void) const
Returns the weight of the vertex.
Definition: Vertex.cpp:90
Object that can move between processes.
Definition: MovableObject.h:99
virtual int getRef(void) const
Returns the vertices integer reference.
Definition: Vertex.cpp:86
virtual int getDegree(void) const
Returns the vertex degree on the graph.
Definition: Vertex.cpp:121
int recvSelf(const CommParameters &)
Receives vertex data.
Definition: Vertex.cpp:197
virtual int getColor(void) const
Returns the color of the vertex.
Definition: Vertex.cpp:94
virtual void setColor(int newColor)
Assigns a color to the vertex.
Definition: Vertex.cpp:78
virtual int getTmp(void) const
Returns the vertices temporary variable.
Definition: Vertex.cpp:98
virtual void setTmp(int newTmp)
To set the temporary variable of the vertex to newTmp.
Definition: Vertex.cpp:82
Object idenfied by an integer (tag).
Definition: TaggedObject.h:91
virtual const std::set< int > & getAdjacency(void) const
Return the adjacency list of the vertex in the graph.
Definition: Vertex.cpp:128
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: Vertex.cpp:168
Communication parameters between processes.
Definition: CommParameters.h:65
virtual int addEdge(int otherTag)
Appends an edge to the vertex.
Definition: Vertex.cpp:113
Vertex(int tag=0, int ref=0, double weight=0, int color=0)
Constructor.
Definition: Vertex.cpp:68