kosmos.protocols.routing.dijkstra_routing¶
Classes¶
- class DijkstraRoutingProtocol(config: kosmos.protocols.config.protocol.RoutingProtocolConfig, network: kosmos.topology.net.Network, source_node: kosmos.topology.node.Node, target_node: kosmos.topology.node.Node)¶
Bases:
kosmos.protocols.routing.routing.RoutingProtocolDijkstra routing protocol.
Initialize the Dijkstra routing protocol.
- Parameters:
config (RoutingProtocolConfig) – Routing protocol configuration.
network (Network) – The network topology.
source_node (Node) – The source node.
target_node (Node) – The target node.
Methods
- execute() kosmos.protocols.protocol_result.RoutingProtocolResult¶
Execute the Dijkstra routing protocol.
- Returns:
Result of the routing protocol execution.
- Return type: