Public Member Functions | List of all members
qt_dotgraph.pydotfactory.PydotFactory Class Reference

Public Member Functions

def __init__ (self)
 
def add_edge_to_graph (self, graph, nodename1, nodename2, label=None, url=None, simplify=True, style=None, penwidth=1, color=None)
 
def add_node_to_graph (self, graph, nodename, nodelabel=None, shape='box', color=None, url=None, tooltip=None)
 
def add_subgraph_to_graph (self, graph, subgraphname, rank='same', simplify=True, rankdir='TB', ranksep=0.2, compound=True, color=None, shape='box', style='bold', subgraphlabel=None)
 
def create_dot (self, graph)
 
def escape_label (self, name)
 
def escape_name (self, name)
 
def get_graph (self, graph_type='digraph', rank='same', simplify=True, rankdir='TB', ranksep=0.2, compound=True)
 

Detailed Description

Definition at line 45 of file pydotfactory.py.

Constructor & Destructor Documentation

◆ __init__()

def qt_dotgraph.pydotfactory.PydotFactory.__init__ (   self)

Definition at line 47 of file pydotfactory.py.

Member Function Documentation

◆ add_edge_to_graph()

def qt_dotgraph.pydotfactory.PydotFactory.add_edge_to_graph (   self,
  graph,
  nodename1,
  nodename2,
  label = None,
  url = None,
  simplify = True,
  style = None,
  penwidth = 1,
  color = None 
)

Definition at line 154 of file pydotfactory.py.

◆ add_node_to_graph()

def qt_dotgraph.pydotfactory.PydotFactory.add_node_to_graph (   self,
  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

Definition at line 85 of file pydotfactory.py.

◆ add_subgraph_to_graph()

def qt_dotgraph.pydotfactory.PydotFactory.add_subgraph_to_graph (   self,
  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.

Definition at line 115 of file pydotfactory.py.

◆ create_dot()

def qt_dotgraph.pydotfactory.PydotFactory.create_dot (   self,
  graph 
)

Definition at line 174 of file pydotfactory.py.

◆ escape_label()

def qt_dotgraph.pydotfactory.PydotFactory.escape_label (   self,
  name 
)

Definition at line 50 of file pydotfactory.py.

◆ escape_name()

def qt_dotgraph.pydotfactory.PydotFactory.escape_name (   self,
  name 
)

Definition at line 57 of file pydotfactory.py.

◆ get_graph()

def qt_dotgraph.pydotfactory.PydotFactory.get_graph (   self,
  graph_type = 'digraph',
  rank = 'same',
  simplify = True,
  rankdir = 'TB',
  ranksep = 0.2,
  compound = True 
)

Definition at line 64 of file pydotfactory.py.


The documentation for this class was generated from the following file:


qt_dotgraph
Author(s): Thibault Kruse, Dirk Thomas
autogenerated on Sat Jun 25 2022 02:15:04