qt_dotgraph.dot_to_qt module

class qt_dotgraph.dot_to_qt.DotToQtGenerator

Bases: object

addEdgeItem(edge, nodes, edges, highlight_level, same_label_siblings=False, scene=None)

Add EdgeItem by data in edge to edges.

Parameters:

same_label_siblings – if true, edges with same label will be considered siblings (collective highlighting)

dotcode_to_qt_items(dotcode, highlight_level, same_label_siblings=False, scene=None)

Take dotcode, run layout, and creates qt items based on the dot layout.

Returns two dicts, one mapping node names to Node_Item, one mapping edge names to lists of

Edge_Item.

Parameters:

same_label_siblings – if true, edges with same label will be considered siblings (collective highlighting)

getNodeItemForNode(node, highlight_level, scene=None)

Return a pyqt NodeItem object, or None in case of error or invisible style.

getNodeItemForSubgraph(subgraph, highlight_level, scene=None)
parse_edges(graph, nodes, highlight_level, same_label_siblings, scene=None)

Recursively search all edges inside the graph and all subgraphs.

parse_nodes(graph, highlight_level, scene=None)

Recursively search all nodes inside the graph and all subgraphs.

qt_dotgraph.dot_to_qt.get_unquoted(item, name)