64 #include "utility/tagged/TaggedObject.h" 65 #include "utility/actor/actor/MovableObject.h" 66 #include "utility/matrix/ID.h" 68 #define START_VERTEX_NUM 0 88 std::set<int> myAdjacency;
94 Vertex(
int tag= 0,
int ref= 0,
double weight=0,
int color =0);
98 virtual void setTmp(
int newTmp);
100 virtual int getRef(
void)
const;
103 virtual int getTmp(
void)
const;
105 virtual int addEdge(
int otherTag);
108 virtual void setAdjacency(
const std::set<int> &adj)
109 { myAdjacency = adj; }
111 virtual void Print(std::ostream &os,
int flag =0)
const;
virtual void setWeight(double newWeight)
Assigns a weight to the vertex.
Definition: Vertex.cpp:74
Vertex of a graph.
Definition: Vertex.h:80
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: Vertex.cpp:168
Communication parameters between processes.
Definition: Communicator.h:66
virtual double getWeight(void) const
Returns the weight of the vertex.
Definition: Vertex.cpp:90
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: Vertex.cpp:157
int recvSelf(const Communicator &)
Receives vertex data.
Definition: Vertex.cpp:197
Object that can move between processes.
Definition: MovableObject.h:100
virtual void Print(std::ostream &os, int flag=0) const
Print stuff.
Definition: Vertex.cpp:138
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
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
int sendSelf(Communicator &)
Send vertex data.
Definition: Vertex.cpp:182
Object idenfied by an integer (tag).
Definition: TaggedObject.h:92
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:35
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