def __init__( self, attributes=None, is_directed=True, head_port_position=None, tail_port_position=None, ): GraphvizMixin.__init__(self, attributes=attributes) self._head = None self._tail = None self._is_directed = bool(is_directed) self.head_port_position = head_port_position self.tail_port_position = tail_port_position
def __init__( self, attributes=None, children=None, name=None, ): TreeContainer.__init__( self, children=children, name=name, ) GraphvizMixin.__init__( self, attributes=attributes, ) self._edges = set([])
def __init__( self, attributes=None, children=None, edge_attributes=None, is_digraph=True, name=None, node_attributes=None, ): TreeContainer.__init__(self, children=children, name=name) GraphvizMixin.__init__(self, attributes=attributes) assert isinstance(edge_attributes, (dict, type(None))) assert isinstance(node_attributes, (dict, type(None))) self._verify_attributes(edge_attributes, '_edge_attributes') self._verify_attributes(node_attributes, '_node_attributes') self._is_digraph = bool(is_digraph) self._node_order = None