MCPcopy Index your code
hub / github.com/clips/pattern / draw

Method draw

pattern/graph/__init__.py:526–532  ·  view source on GitHub ↗

Draws all nodes and edges.

(self, weighted=False, directed=False)

Source from the content-addressed store, hash-verified

524 self.layout.update(**kwargs)
525
526 def draw(self, weighted=False, directed=False):
527 """ Draws all nodes and edges.
528 """
529 for e in self.edges:
530 e.draw(weighted, directed)
531 for n in reversed(self.nodes): # New nodes (with Node._weight=None) first.
532 n.draw(weighted)
533
534 def node_at(self, x, y):
535 """ Returns the node at (x,y) or None.

Callers

nothing calls this directly

Calls 1

drawMethod · 0.45

Tested by

no test coverage detected