This class represents an edge in a Hypergraph.
More...
#include <Edge.h>
|
typedef vector< IDType > | VList |
| Alias for the sequence of vertices to which this edge is attached.
|
|
|
| Edge (IDType id, vector< IDType > const &verts=vector< IDType >(), string label="") |
| Creates a new Edge with the given ID, vertex sequence and label. More...
|
|
| ~Edge () |
| Destroys this instance of an Edge.
|
|
IDType | getID () const |
| Returns the ID of this Edge. More...
|
|
string | getLabel () const |
| Returns the label of this Edge. More...
|
|
void | setLabel (string s) |
| Sets the label of this Edge. More...
|
|
size_t | getArity () const |
| Returns the number of vertices attached to this Edge. More...
|
|
VList & | getVertices () |
| Returns a reference to the sequence of vertices of this Edge. More...
|
|
VList const & | getVertices () const |
| Returns a reference to the sequence of vertices of this Edge. More...
|
|
VList::iterator | beginV () |
| Returns an iterator pointing to the first element of the sequence of attached vertices. More...
|
|
VList::const_iterator | beginV () const |
| Returns an const_iterator pointing to the first element of the sequence of attached vertices. More...
|
|
VList::const_iterator | cbeginV () const |
| Returns an const_iterator pointing to the first element of the sequence of attached vertices. More...
|
|
VList::iterator | endV () |
| Returns an iterator pointing beyond the last element of the sequence of attached vertices. More...
|
|
VList::const_iterator | endV () const |
| Returns an const_iterator pointing beyond the last element of the sequence of attached vertices. More...
|
|
VList::const_iterator | cendV () const |
| Returns an const_iterator pointing beyond the last element of the sequence of attached vertices. More...
|
|
|
std::ostream & | operator<< (std::ostream &ost, Edge const &data) |
| Streams all data stores in the given Edge to the given stream. More...
|
|
This class represents an edge in a Hypergraph.
It can be addressed by an ID, but must be stored within a Hypergraph, i.e. it cannot be a stand-alone object.
- Author
- Jan Stückrath
Creates a new Edge with the given ID, vertex sequence and label.
- Parameters
-
id | the ID of the Edge |
verts | the sequence of vertices to which this edge is attached. |
label | the label of the Edge |
Edge::VList::iterator beginV |
( |
| ) |
|
Returns an iterator pointing to the first element of the sequence of attached vertices.
- Returns
- an iterator pointing to the first element of the sequence of attached vertices
Edge::VList::const_iterator beginV |
( |
| ) |
const |
Returns an const_iterator pointing to the first element of the sequence of attached vertices.
- Returns
- an const_iterator pointing to the first element of the sequence of attached vertices
Edge::VList::const_iterator cbeginV |
( |
| ) |
const |
Returns an const_iterator pointing to the first element of the sequence of attached vertices.
- Returns
- an const_iterator pointing to the first element of the sequence of attached vertices
Edge::VList::const_iterator cendV |
( |
| ) |
const |
Returns an const_iterator pointing beyond the last element of the sequence of attached vertices.
- Returns
- an const_iterator pointing beyond the last element of the sequence of attached vertices
Edge::VList::iterator endV |
( |
| ) |
|
Returns an iterator pointing beyond the last element of the sequence of attached vertices.
- Returns
- an iterator pointing beyond the last element of the sequence of attached vertices
Edge::VList::const_iterator endV |
( |
| ) |
const |
Returns an const_iterator pointing beyond the last element of the sequence of attached vertices.
- Returns
- an const_iterator pointing beyond the last element of the sequence of attached vertices
size_t getArity |
( |
| ) |
const |
Returns the number of vertices attached to this Edge.
A vertex is counted as often as it is attached to the edge.
- Returns
- the number of vertices attached
Returns the ID of this Edge.
- Returns
- the ID of this Edge
string getLabel |
( |
| ) |
const |
Returns the label of this Edge.
- Returns
- the label of this Edge
Returns a reference to the sequence of vertices of this Edge.
- Returns
- a reference to the sequence of vertices of this Edge.
Returns a reference to the sequence of vertices of this Edge.
- Returns
- a reference to the sequence of vertices of this Edge.
void setLabel |
( |
string |
s | ) |
|
Sets the label of this Edge.
- Parameters
-
std::ostream& operator<< |
( |
std::ostream & |
ost, |
|
|
Edge const & |
data |
|
) |
| |
|
friend |
Streams all data stores in the given Edge to the given stream.
- Parameters
-
ost | the ostream to be used |
data | the Edge to be streamed |
- Returns
- a reference to the given stream
The documentation for this class was generated from the following files:
- /home/stueckrath/eclipse_ws/Uncover/src/graphs/Edge.h
- /home/stueckrath/eclipse_ws/Uncover/src/graphs/Edge.cpp