ConnectTool
 All Classes Namespaces Files Functions Variables Pages
Classes | Functions
module_tree Namespace Reference

Classes

class  Node
 Class for node object. More...
 

Functions

def find_node
 Find a node with its id. More...
 
def add_tree
 In a tree, a children to an existing node. More...
 
def dict2tree
 Transform a dictionnary into a tree object. More...
 

Function Documentation

def module_tree.add_tree (   root,
  id_parent,
  ids_children 
)

In a tree, a children to an existing node.

Parent node is found through its id.

Here is the call graph for this function:

Here is the caller graph for this function:

def module_tree.dict2tree (   dict_in)

Transform a dictionnary into a tree object.

Dictionnary must be like parent's id: [child's id
Dictionnary must be ordered:

  • key 1 = root
  • next keys = level 2 nodes
  • next keys = level 3 nodes
  • ...

Here is the call graph for this function:

def module_tree.find_node (   x,
  name 
)

Find a node with its id.

Use a global variable var_glo.

Here is the caller graph for this function: