reoptimization_algorithms.utils.graph.edge.Edge¶
- 
class Edge(source: str, destination: str, weight: float = None)¶
- Bases: - reoptimization_algorithms.utils.graph.base_edge.BaseEdge- Edge class represented as source, destination and weight attributes - Default weight as - Edge.DEFAULT_EDGE_WEIGHT- Parameters
- source (str) – Source vertex key 
- destination (str) – Destination vertex key 
- weight (float, optional (default = None)) – Weight 
 
 - Attributes - Default Edge Weight - Destination vertex key - Source vertex key - Edge weight - 
property DEFAULT_EDGE_WEIGHT¶
- Default Edge Weight - Returns
- 1 
 
 - 
property destination¶
- Destination vertex key - Returns
- Destination vertex key 
 
 - 
property source¶
- Source vertex key - Returns
- Vertex key 
 
 - 
property weight¶
- Edge weight - Returns
- Edge weight