Tools to display graphs of various kinds.
Bases: pydevDAG._display.GraphTransformer
Decorate added edges.
Bases: pydevDAG._display.GraphTransformer
Decorate added nodes.
Bases: pydevDAG._display.GraphTransformer
Make congruence edges dotted.
Bases: object
Abstract superclass of graph transformers.
Locate the objects to transform.
Parameters: | graph (AGraph) – the graph |
---|---|
Returns: | an iterable of objects |
Return type: | iterable |
Do the transformation.
Parameters: | graph (AGraph) – the graph |
---|
Transform obj.
Parameters: |
|
---|
Bases: object
A class that orders and does all graph transformations.
Transform a graph for more helpful viewing.
Parameters: |
|
---|
Bases: object
A class to handle HTML generation for HTML-style labels.
Make an HTML table from a list of rows.
Parameters: | rows (list of str) – a list of rows as <td>...</td> strings |
---|---|
Returns: | HTML sring designating a table |
Return type: | str |
Bases: pydevDAG._display.GraphTransformer
Make partition edges dashed.
Bases: pydevDAG._display.GraphTransformer
Transforms nodes that are partitions.
Sets node label to device name rather than device path. Sets node shape to rectangle.
Bases: pydevDAG._display.GraphTransformer
Transforms a partitioned disk into a partitioned node.
Does not do anything if the disk has no partitions or if some non-partition edges point to any partitions.
Bases: pydevDAG._display.GraphTransformer
Decorate removed edges.
Bases: pydevDAG._display.GraphTransformer
Decorate removed nodes.
Bases: pydevDAG._display.GraphTransformer
Make every actual physical spindle an octagon.
Bases: object
General utilities for graph transformations.
Copy attr object to a dict of keys and values.
Parameters: | attr – the attributes oject |
---|---|
Returns: | a dict of attributes |
Return type: | dict |
Resolve the value of keys on ele.
Since any nested values end up as simple strings, need to evaluate the resulting string to get an actual dict.
Parameters: |
|
---|---|
Returns: | the result of reading from the nested dicts or None |
Return type: | str or NoneType |
Whether ele has diff status diff_status.
Parameters: | ele – the graph element |
---|---|
Returns: | True if ele has status diff_status, otherwise False |
Return type: | bool |
Whether edge has type edge_type.
Parameters: |
|
---|---|
Returns: | True if edge has type edge_type, otherwise False |
Return type: | bool |
Whether node has type node_type.
Parameters: |
|
---|---|
Returns: | True if node has type node_type, otherwise False |
Return type: | bool |