utility
cosmica.experimental_packet_routing.utility
Utility functions for experimental packet routing.
__all__
module-attribute
__all__ = [
"get_edge_data",
"has_edge_bidirectional",
"remove_edge_safe",
]
get_edge_data
Get edge data for either direction (u,v) or (v,u).
Source code in src/cosmica/experimental_packet_routing/utility.py
30 31 32 33 34 35 36 | |
has_edge_bidirectional
Check if edge exists in either direction (u,v) or (v,u).
Source code in src/cosmica/experimental_packet_routing/utility.py
14 15 16 | |
remove_edge_safe
Safely remove edge in either direction. Returns True if edge was removed.
Source code in src/cosmica/experimental_packet_routing/utility.py
19 20 21 22 23 24 25 26 27 | |