class InheritanceGraph: (source)
Given a list of classes, determines the set of classes that they inherit from all the way to the root "object", and then is able to generate a graphviz dot graph from them.
Method | __init__ |
*class_names* is a list of child classes to show bases from. |
Method | class |
Given a class object, return a fully-qualified name. |
Method | generate |
Generate a graphviz dot graph from the classes that were passed in to __init__. |
Method | get |
Get all of the class names involved in the graph. |
Class Variable | default |
Undocumented |
Class Variable | default |
Undocumented |
Class Variable | default |
Undocumented |
Instance Variable | class |
Undocumented |
Instance Variable | class |
Undocumented |
Method | _class |
Return name and bases for all classes that are ancestors of *classes*. |
Method | _format |
Undocumented |
Method | _format |
Undocumented |
Method | _import |
Import a list of classes. |
*class_names* is a list of child classes to show bases from. If *show_builtins* is True, then Python builtins will be shown in the graph.
Parameters | |
classlist[ | Undocumented |
currmodule:str | Undocumented |
showbool | Undocumented |
privatebool | Undocumented |
parts:int | Undocumented |
aliases:dict[ | Undocumented |
toplist[ | Undocumented |
Generate a graphviz dot graph from the classes that were passed in to __init__. *name* is the name of the graph. *urls* is a dictionary mapping class names to HTTP URLs. *graph_attrs*, *node_attrs*, *edge_attrs* are dictionaries containing key/value pairs to pass on as graphviz properties.
Parameters | |
name:str | Undocumented |
urls:dict[ | Undocumented |
env:BuildEnvironment|None | Undocumented |
graphdict | Undocumented |
nodedict | Undocumented |
edgedict | Undocumented |
Returns | |
str | Undocumented |
Return name and bases for all classes that are ancestors of *classes*. *parts* gives the number of dotted name parts to include in the displayed node names, from right to left. If given as a negative, the number of parts to drop from the left. A value of 0 displays the full dotted name. E.g. ``sphinx.ext.inheritance_diagram.InheritanceGraph`` with ``parts=2`` or ``parts=-2`` gets displayed as ``inheritance_diagram.InheritanceGraph``, and as ``ext.inheritance_diagram.InheritanceGraph`` with ``parts=3`` or ``parts=-1``. *top_classes* gives the name(s) of the top most ancestor class to traverse to. Multiple names can be specified separated by comma.
Parameters | |
classes:list[ | Undocumented |
showbool | Undocumented |
privatebool | Undocumented |
parts:int | Undocumented |
aliases:dict[ | Undocumented |
toplist[ | Undocumented |
Returns | |
list[ | Undocumented |