Dataflow Software Stack
032db78
Master Thesis of Mathijs Saey at the VUB
|
Functions | |
def | subGraphHeader |
Add the attributes of the subgraph. More... | |
def | subGraphFooter |
"close" the subgraph. More... | |
def | compoundHeader |
def | compoundFooter |
def | portString |
Get a representation for a port. More... | |
def | ports |
String representation of a port list. More... | |
def | inputList |
Get the portlist for the inputs of a node. More... | |
def | outputList |
Get the portlist for the outputs of a node. More... | |
def | nodeIdentifier |
Identifier of the node. More... | |
def | edgeStr |
Convert a connection to a string. More... | |
def | nodeLabel |
Add the label of the node to the buffer. More... | |
def | nodeLinks |
Add all the outgoing edges of a node to the buffer. More... | |
def | node |
Write the information of a node to the buffer. More... | |
def | dotHeader |
Write general dot information. More... | |
def | dotFooter |
Close the dot graph. More... | |
def | getDot |
Create the dot string. More... | |
def | dotToFile |
Get the dot representation and write it to a file. More... | |
def | dot |
Convert the IGR graph to dot, save it, and run dot on this file. More... | |
Variables | |
tuple | log = logging.getLogger(__name__) |
IGR dot parser.
This module can return a dot version of the graph. Mainly useful for debugging the compilation process.
def IGR.dot.subGraphHeader | ( | buffer, | |
subGraph | |||
) |
Add the attributes of the subgraph.
def IGR.dot.subGraphFooter | ( | buffer, | |
subGraph | |||
) |
"close" the subgraph.
def IGR.dot.compoundHeader | ( | buffer, | |
node | |||
) |
def IGR.dot.compoundFooter | ( | buffer, | |
node | |||
) |
def IGR.dot.portString | ( | port, | |
preFix = "" |
|||
) |
Get a representation for a port.
def IGR.dot.ports | ( | portLst, | |
prefix = "" |
|||
) |
String representation of a port list.
portLst | The list with ports, should not be None |
def IGR.dot.inputList | ( | node | ) |
Get the portlist for the inputs of a node.
def IGR.dot.outputList | ( | node | ) |
Get the portlist for the outputs of a node.
def IGR.dot.nodeIdentifier | ( | node | ) |
Identifier of the node.
def IGR.dot.edgeStr | ( | srcNode, | |
scrPort, | |||
dstNode, | |||
dstPort | |||
) |
Convert a connection to a string.
def IGR.dot.nodeLabel | ( | buffer, | |
node | |||
) |
Add the label of the node to the buffer.
def IGR.dot.nodeLinks | ( | buffer, | |
node | |||
) |
Add all the outgoing edges of a node to the buffer.
def IGR.dot.node | ( | buffer, | |
node | |||
) |
Write the information of a node to the buffer.
def IGR.dot.dotHeader | ( | buffer | ) |
Write general dot information.
def IGR.dot.dotFooter | ( | buffer | ) |
Close the dot graph.
def IGR.dot.getDot | ( | skipCompound | ) |
Create the dot string.
def IGR.dot.dotToFile | ( | path, | |
skipCompound = True |
|||
) |
Get the dot representation and write it to a file.
def IGR.dot.dot | ( | dotpath = "dot" , |
|
path = "igr.dot" , |
|||
format = "png" , |
|||
output = "" , |
|||
other = [] , |
|||
skipCompound = True |
|||
) |
Convert the IGR graph to dot, save it, and run dot on this file.
This function should be call with keyword arguments. The default arguments will cause the following behaviour:
dotpath | The path of the dot executable, in case it's not in your PATH |
path | The location where the dot file will be stored. |
format | The output format of the graph dot creates from the dot file. |
output | The location where we store the output of dot. Leaving this blank will pass the -O option. The -O option let's dot choose the path. |
other | Any other options you want to pass to doth. These options should be passed as a list of strings. |
skipCompound | True if you do not want to display the compound nodes. |
tuple IGR.dot.log = logging.getLogger(__name__) |