DCI Example: Dijkstra #!/usr/bin/env ruby # Example in Ruby -- Dijkstra's algorithm in DCI # Modified and simplified for a Manhattan geometry with 8 roles # # # # Demonstrates an example where: # # - objects of class Node play several roles simultaneously # (albeit spread across Contexts: a Node can # play the CurrentIntersection in one Context and an Eastern or # Southern Neighbor in another) # -