maxon.frameworks.graph.GraphLib

Description

GraphLib contains some static functions for graphs.

Inheritance diagram

Inheritance

Methods Signature

CreateAttribute(attr, flags)

Creates a maxon.frameworks.graph.GraphAttribute with the given name and flags.

CreateMessage(flags, origin, value)

Creates a GraphMessage.

CreateSimpleGraphModel()

Creates a new instance of a simple implementation of maxon.frameworks.graph.GraphModelInterface.

WriteGml(graph, output)

Writes a graph to a GML file (Graph Modeling Language).

Methods Definition

GraphLib.CreateAttribute(attr, flags)

Creates a maxon.frameworks.graph.GraphAttribute with the given name and flags.

:param attr:The name of the attribute. :type attr: maxon.InternedId :param flags: The flags of the attribute. :type flags: maxon.frameworks.graph.GraphAttributeInterface.FLAGS :return: A new maxon.frameworks.graph.GraphAttribute with the given name and flags. :rtype: maxon.frameworks.graph.GraphAttribute

GraphLib.CreateMessage(flags, origin, value)

Creates a GraphMessage.

Parameters
Returns

A new maxon.frameworks.graph.GraphMessage for the given parameters.

Return type

maxon.frameworks.graph.GraphMessage

GraphLib.CreateSimpleGraphModel()
Creates a new instance of a simple implementation of maxon.frameworks.graph.GraphModelInterface.
The simple graph model only manages plain nodes, ports and connections, but it doesn’t support advanced features like inheritance from base graphs, derived attributes, implicit connections, rollback of transactions or change lists.
Returns

A new maxon.frameworks.graph.GraphModelRef which uses a simple implementation of maxon.frameworks.graph.GraphModelInterface.

Return type

maxon.frameworks.graph.GraphModelRef

GraphLib.WriteGml(graph, output)

Writes a graph to a GML file (Graph Modeling Language).

Parameters
Returns