qt_dotgraph.pygraphvizfactory module
- class qt_dotgraph.pygraphvizfactory.PygraphvizFactory
Bases:
object
- add_edge_to_graph(graph, nodename1, nodename2, label=None, url=None, simplify=True, style=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, subgraphlabel, rank='same', simplify=True, rankdir='TB', ranksep=0.2, compound=True, color=None, shape='box', style='bold')
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)
- get_graph(graph_type='digraph', rank='same', simplify=True, rankdir='TB', ranksep=0.2, compound=True)