Represents a connection between two nodes in a graph.
Definition link.hpp:37
bool operator==(const Link &other_link) const
Equality operator for Link.
Link(std::string from, int port_from, std::string to, int port_to)
Constructs a Link instance.
Definition link.hpp:50
int port_from
Port number on the source node.
Definition link.hpp:39
std::string to
Identifier of the destination node.
Definition link.hpp:40
void print()
Prints the details of the Link.
int port_to
Port number on the destination node.
Definition link.hpp:41
std::string from
Identifier of the source node.
Definition link.hpp:38