qt_dotgraph.pydotfactory module

class qt_dotgraph.pydotfactory.PydotFactory

Bases: object

add_edge_to_graph(graph, nodename1, nodename2, label=None, url=None, style=None, penwidth=1, color=None, edgetooltip=None)
add_node_to_graph(graph, nodename, nodelabel=None, shape='box', color=None, url=None, tooltip=None)

Create a node item for this factory, adds it to the graph.

Node name can vary from label but must always be same for the same node label

add_subgraph_to_graph(graph, subgraphname, rank='same', simplify=True, rankdir='TB', ranksep=0.2, compound=True, color=None, shape='box', style='bold', subgraphlabel=None)

Create a cluster subgraph item for this factory, adds it to the graph.

cluster name can vary from label but must always be same for the same node label. Most layouters require cluster names to start with cluster.

create_dot(graph)
escape_label(name)
escape_name(name)
get_graph(graph_type='digraph', rank='same', simplify=True, rankdir='TB', ranksep=0.2, compound=True)