TTGraph

TTPython programs are dataflow graphs, composed of nodes or ‘Scheduling Quanta’ (SQs). SQs in the graph are connected by arcs, which generlly correspond to variable names in the TTPython program

The graph is generated by our Compiler based pythonic function that has been given the ‘GRAPHify’ decorator. The graph also includes additional constructs like a set of clocks and constraints, which are generally described using ‘with’ constructs

class ticktalkpython.Graph.TTGraph(library_path=None)

TTGraphs are created as empty graphs, containing only empty instance variables that will be filled in during the compilation process.

The graph contains the set of available base SQ functions, a list of those SQs as they are implemented within the graph (including the arc connections), a set of clocks, a set of symbols, a set of input or ‘trigger’ arcs, and a set of constraints to apply to SQs (or groups thereof).

input_arc_dict()

Generate a dictionary of the input arcs to the graph (i.e., the arcs that must be given some initial value at runtime to trigger the rest of the graph to start). Those arcs have no source SQ, and must have destination SQs

internal_arc_dict()

Generate a dictionary of the internal arcs in the graph These arcs have a source and at least one destination SQ

output_arc_dict()

Generate a dictionary of the output arcs in the graph (i.e., the arcs that are terminated points in the graph). These arcs have no destination SQ, but do have a source.