Methods to manage states and initial states.
|
|
__init__(self,
graph)
Initialize States. |
|
|
|
|
|
|
|
__call__(self,
*args,
**kwargs)
Return list of states. |
|
|
|
|
|
|
|
__len__(self)
Total number of states. |
|
|
|
|
|
|
|
| __ior__(self,
new_states) |
|
|
|
|
__contains__(self,
state)
Return True if state in states. |
|
|
|
|
|
|
|
|
|
|
remove(self,
state)
Remove state from states (including initial). |
|
|
|
|
|
|
set
|
post(self,
states=None)
Direct successor set (1-hop) for given states. |
|
|
|
set
|
pre(self,
states)
Return direct predecessors (1-hop) of given state. |
|
|
|
|
|
|
|
|
|
|
paint(self,
state,
color)
Color the given state. |
|
|
|
list of labeled states
|
find(self,
states=None,
with_attr_dict=None,
**with_attr)
Filter by desired states and by desired state labels. |
|
|
|
|
is_terminal(self,
state)
Return True if state has no outgoing transitions. |
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__subclasshook__
|