TIOVX User Guide
tiovx.graph.Graph Class Reference

Graph object (OpenVX equivalent = vx_graph) More...

Inherits tiovx.reference.Reference.

Public Member Functions

def __init__ (self, name="default")
 Constructor used to create this object. More...
 
def add (self, node)
 Add node object to graph. More...
 

Detailed Description

Graph object (OpenVX equivalent = vx_graph)

Example Usage: Create a graph and add nodes to it
from tiovx import *
my_context = Context("my_context_name")
my_graph = Graph("mygraph")
my_context.add(my_graph)
my_graph.add(my_node)
my_graph.add(my_node)

Definition at line 85 of file graph.py.

Constructor & Destructor Documentation

◆ __init__()

def tiovx.graph.Graph.__init__ (   self,
  name = "default" 
)

Constructor used to create this object.

See also
vxCreateGraph for more details about the parameters
Parameters
name[in] Name to assign to this context

Definition at line 91 of file graph.py.

Member Function Documentation

◆ add()

def tiovx.graph.Graph.add (   self,
  node 
)

Add node object to graph.

Parameters
node[in] Object of type Node

Definition at line 98 of file graph.py.


The documentation for this class was generated from the following file: