Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- # Importamos la clase node.py.
- import node
- """ Segment
- =======================================
- Creamos la clase Segment, la cual esta formada por un nodo origen, uno de destino y la distancia que los separa.
- """
- class Segment:
- def __init__ (self, nodeOrg, nodeDst):
- self.nodeOrg = nodeOrg
- self.nodeDst = nodeDst
- self.cost = node.distance(nodeOrg,nodeDst)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement