|
GNode library (C++)
|
Represents a connection between two nodes in a graph. More...
#include <link.hpp>
Public Member Functions | |
| Link (std::string from, int port_from, std::string to, int port_to) | |
Constructs a Link instance. | |
| bool | operator== (const Link &other_link) const |
Equality operator for Link. | |
| void | print () |
Prints the details of the Link. | |
Public Attributes | |
| std::string | from |
| Identifier of the source node. | |
| int | port_from |
| Port number on the source node. | |
| std::string | to |
| Identifier of the destination node. | |
| int | port_to |
| Port number on the destination node. | |
Represents a connection between two nodes in a graph.
The Link struct holds the details of a connection between two nodes, including the identifiers of the nodes and the ports involved in the connection. This information is used to define and manage the connections within a graph.
|
inline |
| bool gnode::Link::operator== | ( | const Link & | other_link | ) | const |
| void gnode::Link::print | ( | ) |
| std::string gnode::Link::from |
Identifier of the source node.
| int gnode::Link::port_from |
Port number on the source node.
| int gnode::Link::port_to |
Port number on the destination node.
| std::string gnode::Link::to |
Identifier of the destination node.