Example #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")
Example #2
0
 def _update_nodes(self, stgraph):
     self._update_ignored_nodes(stgraph)
     return BasicDotSubGraph.update_nodes(self, stgraph)
Example #3
0
 def _init_view_options(self):
     BasicDotSubGraph._init_view_options(self)
     self.order_nodes_option()
Example #4
0
 def _is_visible(self, stnode):
     return ( BasicDotSubGraph._is_visible(self, stnode) and
             stnode not in self._ignored_nodes )
Example #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")
Example #6
0
 def _is_visible(self, stnode):
     return (BasicDotSubGraph._is_visible(self, stnode)
             and stnode not in self._ignored_nodes)
Example #7
0
 def _update_nodes(self, stgraph):
     self._update_ignored_nodes(stgraph)
     return BasicDotSubGraph.update_nodes(self, stgraph)
Example #8
0
 def _init_view_options(self):
     BasicDotSubGraph._init_view_options(self)
     self.order_nodes_option()