示例#1
0
 def _node_statement(self, stgraph, stnode):
     if stgraph.node_is_terminal(stnode):
         return BasicDotSubGraph._node_statement(self, stgraph, stnode)
     else:
         return BasicDotSubGraph._node_statement(self,
                                                 stgraph,
                                                 stnode,
                                                 fontcolor="black")
示例#2
0
 def _update_nodes(self, stgraph):
     self._update_ignored_nodes(stgraph)
     return BasicDotSubGraph.update_nodes(self, stgraph)
示例#3
0
 def _init_view_options(self):
     BasicDotSubGraph._init_view_options(self)
     self.order_nodes_option()
示例#4
0
 def _is_visible(self, stnode):
     return ( BasicDotSubGraph._is_visible(self, stnode) and
             stnode not in self._ignored_nodes )
示例#5
0
 def _node_statement(self, stgraph, stnode):
     if stgraph.node_is_terminal(stnode):
         return BasicDotSubGraph._node_statement(self, stgraph, stnode)
     else:
         return BasicDotSubGraph._node_statement(self, stgraph, stnode,
                                                 fontcolor="black")
示例#6
0
 def _is_visible(self, stnode):
     return (BasicDotSubGraph._is_visible(self, stnode)
             and stnode not in self._ignored_nodes)
示例#7
0
 def _update_nodes(self, stgraph):
     self._update_ignored_nodes(stgraph)
     return BasicDotSubGraph.update_nodes(self, stgraph)
示例#8
0
 def _init_view_options(self):
     BasicDotSubGraph._init_view_options(self)
     self.order_nodes_option()