lyra_graphtool
lyra_graphtool.configuration module
lyra_graphtool.edge module
- class lyra_graphtool.edge.Edge(v1: Vertex, v2: Vertex)[source]
Bases:
Generic
[Edge
]- in_graph() bool [source]
This determines if edge is allowed to travel in 1 timestep
- Arguments:
None
- Return:
- bool
True - edge is allowed for travel in 1 timestep: add to graph False - cannot travel across edge in 1 timestep: do not add to graph
lyra_graphtool.graph module
lyra_graphtool.parameters module
lyra_graphtool.utils module
lyra_graphtool.vertex module
- class lyra_graphtool.vertex.Vertex(x, y, v_type=Vertex_Type.BASIC, reward=0, mult_time=1, mult_time_active=(None, None), mult_worker=None, expiration_time=None, time_to_acquire=0)[source]
Bases:
Generic
[Vertex
]
- class lyra_graphtool.vertex.Vertex_Type(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
IntEnum
- Used to define type of location.
Note: BASIC is a location in space, neither a SITE nor ORIGIN
- BASIC = 0
- ORIGIN = 1
- OTHER = 5
- OTHER2 = 6
- SITE1 = 2
- SITE2 = 3
- SITE3 = 4