Methods to manage states and initial states.
|
__init__(self,
graph)
x.__init__(...) initializes x; see help(type(x)) for signature |
|
|
|
|
|
__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 single state. |
|
|
|
remove_from(self,
states)
Remove a list of states. |
|
|
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. |
|
|
|
is_blocking(self,
state)
Check if state has outgoing transitions for each label. |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|