Graph C++ Library
 All Classes Namespaces Files Functions Variables Typedefs Groups Pages
edge_attributes.hpp
Go to the documentation of this file.
1 
10 #ifndef EDGE_ATTRIBUTES_HPP_INCLUDED
11 #define EDGE_ATTRIBUTES_HPP_INCLUDED
12 
14 namespace gcl
15 {
16 
25  {
26  // ============================================================================================
27  // *** Attributes.
28  public:
29  unsigned int id;
30  // ============================================================================================
31  // *** Constructors/destructor.
32  public:
34  simple_edge(unsigned int _id) {id = _id;}
36  };
37 
46  {
47  // ============================================================================================
48  // *** Attributes.
49  public:
50  unsigned int id;
51  double weight;
52  // ============================================================================================
53  // *** Constructors/destructor.
54  public:
56  weighted_edge(unsigned int _id, double _weight)
57  {id = _id; weight = _weight;}
59  };
60 
61 } // End of namespace gcl.
62 
63 
64 
65 #endif // EDGE_ATTRIBUTES_HPP_INCLUDED
Class of the attributes of a simple edge.
Definition: edge_attributes.hpp:24
~simple_edge()
Destructor.
Definition: edge_attributes.hpp:35
unsigned int id
Numerical ID of the vertex at the other end of the edge.
Definition: edge_attributes.hpp:29
double weight
Weight of the edge.
Definition: edge_attributes.hpp:51
Class of the attributes of a weighted edge.
Definition: edge_attributes.hpp:45
weighted_edge(unsigned int _id, double _weight)
Constructor.
Definition: edge_attributes.hpp:56
simple_edge(unsigned int _id)
Constructor.
Definition: edge_attributes.hpp:34
weighted_edge()
Empty constructor.
Definition: edge_attributes.hpp:55
~weighted_edge()
Destructor.
Definition: edge_attributes.hpp:58
unsigned int id
Numerical ID of the vertex at the other end of the edge.
Definition: edge_attributes.hpp:50
simple_edge()
Empty constructor.
Definition: edge_attributes.hpp:33