module documentation
Graph manipulation utilities. (dot generation adapted from pypy/translator/tool/make_dot.py)
Class |
|
Dot File back-end. |
Function | get |
Return a list of detected cycles based on an ordered graph (i.e. keys are vertices and values are lists of destination vertices representing edges). |
Function | normalize |
Returns a suitable DOT node id for `nid`. |
Function | target |
Transforms /some/path/foo.png into ('/some/path', 'foo.png', 'png'). |
Function | _get |
Recursive function doing the real work for get_cycles. |
def get_cycles(graph_dict:
dict[ str, set[ str]]
, vertices: list[ str]|None
= None) -> Sequence[ list[ str]]
:
(source)
¶
Return a list of detected cycles based on an ordered graph (i.e. keys are vertices and values are lists of destination vertices representing edges).