21 #ifndef DATA_STRUCTURESEDGE_H
22 #define DATA_STRUCTURESEDGE_H
50 Edge(
IDType id, vector<IDType>
const& verts = vector<IDType>(),
string label =
"");
104 VList::const_iterator
beginV()
const;
110 VList::const_iterator
cbeginV()
const;
116 VList::iterator
endV();
122 VList::const_iterator
endV()
const;
128 VList::const_iterator
cendV()
const;
136 friend std::ostream&
operator<< (std::ostream& ost,
Edge const& data);
friend std::ostream & operator<<(std::ostream &ost, Edge const &data)
Streams all data stores in the given Edge to the given stream.
Definition: Edge.cpp:82
VList::iterator beginV()
Returns an iterator pointing to the first element of the sequence of attached vertices.
Definition: Edge.cpp:58
VList::iterator endV()
Returns an iterator pointing beyond the last element of the sequence of attached vertices.
Definition: Edge.cpp:70
IDType getID() const
Returns the ID of this Edge.
Definition: Edge.cpp:31
size_t getArity() const
Returns the number of vertices attached to this Edge.
Definition: Edge.cpp:46
string label
Stores the label of this Edge.
Definition: Edge.h:148
void setLabel(string s)
Sets the label of this Edge.
Definition: Edge.cpp:36
VList vertices
Stores the sequence of vertices to which this edge is attached.
Definition: Edge.h:153
Edge(IDType id, vector< IDType > const &verts=vector< IDType >(), string label="")
Creates a new Edge with the given ID, vertex sequence and label.
Definition: Edge.cpp:27
VList::const_iterator cendV() const
Returns an const_iterator pointing beyond the last element of the sequence of attached vertices...
Definition: Edge.cpp:78
IDType ID
Stores the ID of this Edge.
Definition: Edge.h:143
VList::const_iterator cbeginV() const
Returns an const_iterator pointing to the first element of the sequence of attached vertices...
Definition: Edge.cpp:66
string getLabel() const
Returns the label of this Edge.
Definition: Edge.cpp:41
VList & getVertices()
Returns a reference to the sequence of vertices of this Edge.
Definition: Edge.cpp:50
~Edge()
Destroys this instance of an Edge.
Definition: Edge.cpp:29
unsigned int IDType
IDType is an (unsigned) integer specifically used as an Identifier of graphs, elements of graphs or a...
Definition: globals.h:53
vector< IDType > VList
Alias for the sequence of vertices to which this edge is attached.
Definition: Edge.h:42
This class represents an edge in a Hypergraph.
Definition: Edge.h:34