maxon.GraphLib

Description

GraphLib contains some static functions for graphs.

Inheritance diagram

Inheritance

Methods Signature

CreateAttribute(attr, flags)

Creates a maxon.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.GraphModelInterface.

WriteGml(graph, output)

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

Methods Definition

GraphLib.CreateAttribute(attr, flags)

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

Parameters
Returns

A new maxon.GraphAttribute with the given name and flags.

Return type

maxon.GraphAttribute

GraphLib.CreateMessage(flags, origin, value)

Creates a GraphMessage.

Parameters
Returns

A new maxon.GraphMessage for the given parameters.

Return type

maxon.GraphMessage

GraphLib.CreateSimpleGraphModel()
Creates a new instance of a simple implementation of maxon.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.GraphModelRef which uses a simple implementation of maxon.GraphModelInterface.

Return type

maxon.GraphModelRef

GraphLib.WriteGml(graph, output)

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

Parameters
Returns