class InheritanceGraph:
Method | __init__ |
class_names is a list of child classes to show bases from. |
Method | _class_info |
Return name and bases for all classes that are ancestors of classes. |
Method | _format_graph_attrs |
Undocumented |
Method | _format_node_attrs |
Undocumented |
Method | _import_classes |
Import a list of classes. |
Method | class_name |
Given a class object, return a fully-qualified name. |
Method | generate_dot |
Generate a graphviz dot graph from the classes that were passed in to __init__. |
Method | get_all_class_names |
Get all of the class names involved in the graph. |
Class Variable | default_edge_attrs |
Undocumented |
Class Variable | default_graph_attrs |
Undocumented |
Class Variable | default_node_attrs |
Undocumented |
Instance Variable | class_info |
Undocumented |
Instance Variable | class_names |
Undocumented |
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 | |
class_names:List[ | Undocumented |
currmodule:str | Undocumented |
show_builtins:bool | Undocumented |
private_bases:bool | Undocumented |
parts:int | Undocumented |
aliases:Dict[ | Undocumented |
top_classes:List[ | 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 |
show_builtins:bool | Undocumented |
private_bases:bool | Undocumented |
parts:int | Undocumented |
aliases:Dict[ | Undocumented |
top_classes:List[ | Undocumented |
Returns | |
List[ | Undocumented |
Undocumented
Parameters | |
attrs:Dict | Undocumented |
Returns | |
str | Undocumented |
Undocumented
Parameters | |
attrs:Dict | Undocumented |
Returns | |
str | Undocumented |
Parameters | |
class_names:List[ | Undocumented |
currmodule:str | Undocumented |
Returns | |
List[ | Undocumented |
Given a class object, return a fully-qualified name.
This works for things I've tested in matplotlib so far, but may not be completely general.
Parameters | |
cls:Any | Undocumented |
parts:int | Undocumented |
aliases:Dict[ | Undocumented |
Returns | |
str | 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 | Undocumented |
graph_attrs:Dict | Undocumented |
node_attrs:Dict | Undocumented |
edge_attrs:Dict | Undocumented |
Returns | |
str | Undocumented |