Peter Mawhorter, Indira Ruslanova, and Ross Mawhorter
August 31, 2022
This work was done on land stolen from the Massachusett, Wampanoag, Nipmuck, Uypi, Amah Mutsun, and Chumash peoples, and the authors are grateful for their stewardship of that land in the past, in the present, and in the future. The history of this land is important because this work could not have happened without its use. We acknowledge that we directly benefit from this ongoing injustice.
See Peer, et al. 2021 “Structuring Knowledge with Cognitive Maps and Cognitive Graphs.”
exploration
Libraryexploration
on PyPInetworkx
graph
libraryDecisionGraph
sDecisionGraph
sExploration
ObjectsDecisionGraph
s
Exploration
# Create first two decisions
e = core.Exploration()
e.start('on ship', ['left', 'right'])
e.explore('right', 'cliff', ['up cliff', 'through tunnel'], 'to ship')
# Add requirements to cliff options we can't take yet
g = e.currentGraph()
g.setTransitionRequirement('cliff', 'up cliff', 'high_jump')
g.setTransitionRequirement('cliff', 'through tunnel', 'breaker')
# Set some requirements
g = e.currentGraph()
g.setTransitionRequirement('cave', 'down blocked', 'crawl&breaker')
g.setTransitionRequirement('cave', 'down short', 'crawl')
g.setTransitionRequirement('cave', 'left', 'breaker')
# Explore down to the first ledge where a door is visible
e.explore('down pit', 'cave ledge', ['down', 'recessed door'], 'up')
# Set requirement for the door
g = e.currentGraph()
g.setTransitionRequirement('cave ledge', 'recessed door', 'crawl')