Generic utilities.
Bases: object
Set or get the values of objects located in arbitrarily nested dicts.
Get value.
Parameters: |
|
---|---|
Returns: | the result of traversing tree by means of keys |
Return type: | object |
Raises DAGValueError: | |
if the value can not be found |
Set value.
Parameters: | |
---|---|
Raises DAGValueError: | |
on bad parameters |
Bad parameters are considered to have been passed if: * An empty list of keys, don’t know what to set. * A prefix of the list yields a non-dict value.
Bases: object
Get the result of looking at multiple attributes of a node at once.
Bases: object
Generic utilties for graphs.
Get the roots of a graph.
Parameters: | graph (DiGraph) – the graph |
---|---|
Returns: | the roots of the graph |
Return type: | list of Node |