Coverage for Adifpy/visualize/graph_tree.py: 83%

6 statements  

« prev     ^ index     » next       coverage.py v6.5.0, created at 2022-11-22 19:44 -0500

1"""Implements visualization of computational graph""" 

2import matplotlib 

3from Adifpy.construct.function_tree import FunctionTree 

4 

5 

6class GraphTree(): 

7 """A display of a presentable representation of a computation graph.""" 

8 

9 def init(self): 

10 pass 

11 

12 def draw(self, tree): 

13 """Graph a computational graph 

14  

15 Args: 

16 tree: a FunctionTree 

17  

18 Returns: 

19 A matplotlib graph of the tree 

20 """