Textual display of graph.
Bases: object
Sort out nodes and their relationship to each other in printing.
Generates print information about nodes reachable from node including itself.
Parameters: |
|
---|---|
Returns: | a table of information to be used for further display |
Return type: | dict of str * object |
Fields in table: * diffstatus - the diffstatus of the edge to this node * indent - the level of indentation * last - whether this node is the last child of its parent * node - the table of information about the node itself * orphan - whether this node has no parents
Generates print information about nodes in graph. Starts from the roots of the graph.
Parameters: |
|
---|---|
Returns: | a table of information to be used for further display |
Return type: | list of dict of str * object |
Fields in table: * diffstatus - the diffstatus of the edge to this node * indent - the level of indentation * last - whether this node is the last child of its parent * node - the table of information about the node itself * orphan - whether this node has no parents
Generates print information about nodes reachable from node including itself. Assumes that the node is a root and supplies some appropriate defaults.
Parameters: |
|
---|---|
Returns: | a table of information to be used for further display |
Return type: | dict of str * object |
Fields in table: * diffstatus - the diffstatus of the edge to this node * indent - the level of indentation * last - whether this node is the last child of its parent * node - the table of information about the node itself * orphan - whether this node has no parents
Bases: object
Class that represents the configuration for LineArrangements methods.
Bases: object
Class that generates info for a single line.
Function to generate information to be printed for node.
Parameters: |
|
---|---|
Returns: | a mapping of keys to values |
Return type: | dict of str * (str or NoneType) |
Only values for elements at x in keys are calculated. If keys is None, return an item for every index. If keys is the empty list, return an empty dict. Return None for key in keys that can not be satisfied.
If strings is set, convert all values to their string representation.
Bases: object
Methods to print a list of lines representing a graph.
Calculate widths of every column.
Parameters: |
|
---|---|
Returns: | a table of key/length pairs |
Return type: | dict of str * int |
Format string for every data value.
Parameters: |
|
---|---|
Returns: | a format string |
Return type: | str |
Get the column headers.
Parameters: |
|
---|---|
Returns: | the column headers |
Return type: | str |
Yield lines to be printed.
Parameters: |
|
---|
Bases: object
Use information to transform the fields in the line.
Calculate left trailing spaces and edge characters to initial value.
Parameters: | line_info (dict of str * object) – a map of information about the line |
---|---|
Returns: | the prefix str for the first column value |
Return type: | str |
Format the edge based on the diffstatus.
Returns: | a formatted string |
---|---|
Return type: | str |
Return the number of spaces for the next indentation level.
Returns: | indentation |
---|---|
Return type: | int |
Transform column values and yield just the line info.
Parameters: |
|
---|