openalea.mtg.interface package

Submodules

openalea.mtg.interface.mtg module

This module provides multiscale tree concepts to form MTG interface.

class openalea.mtg.interface.mtg.MultiscaleTreeConcept[source]

Bases: object

Multiscale Tree Graph definition.

children(vtx_id)[source]

Return a vertex iterator

Parameters:
  • vtx_id: The vertex identifier.
Return:

iter of vertex identifier

get_root()[source]

Return the tree root.

Return:vertex identifier
is_leaf(vtx_id)[source]

Test if vtx_id is a leaf.

Return:bool
nb_children(vtx_id)[source]

Return the number of children

Parameters:
  • vtx_id: The vertex identifier.
Return:

int

parent(vtx_id)[source]

Return the parent of vtx_id.

Parameters:
  • vtx_id: The vertex identifier.
Return:

vertex identifier

root

Return the tree root.

Return:vertex identifier
set_root(vtx_id)[source]

Set the tree root.

Parameters:
  • vtx_id: The vertex identifier.

Module contents