MCPcopy
hub / github.com/programthink/zhao / _node_color

Method _node_color

bin/make.py:181–185  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

179
180
181 def _node_color(self, node) :
182 if u'company' == node.type :
183 return u'green'
184 else :
185 return (u'blue' if u'M'==node.sex else u'red')
186
187 def _other_names(self, node) :
188 other_names = ''

Callers 2

_dot_nodeMethod · 0.95
_dot_relationMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected