finesse.utilities.graph¶
Functions to aid manipulation of networkx graphs as well as some graph related utilities.
Functions
| 
 | Creates a directed graph from a class and all of its base classes. | 
| 
 | Creates a directed graph for all the classes and base classes in the module graph. | 
| 
 | A trick I often see in networkx's codebase to copy a graph. | 
| An orphan node is a node with no edges. | |
| A sink node is a node with no outgoing edges. | |
| A source node is a node with no incoming edges. | |
| 
 | Creates a directed graph from a module and all of its submodules. | 
| 
 | Removes nodes with in and out degree 0 from graph G. | 
| 
 | Removes nodes with out degree 0 from graph G. | 
| 
 | Removes nodes with in degree 0 from graph G. |