maxon.GraphLib

Description

GraphLib contains some static functions for graphs.

Inheritance diagram

Methods Signature

CreateAttribute(*args)

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

CreateMessage(*args)

Creates a GraphMessage.

CreateSimpleGraphModel(*args)

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

WriteGml(*args)

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

Methods Definition

static GraphLib.CreateAttribute(*args)

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

static GraphLib.CreateMessage(*args)

Creates a GraphMessage.

Parameters
Returns

A new maxon.GraphMessage for the given parameters.

Return type

maxon.GraphMessage

static GraphLib.CreateSimpleGraphModel(*args)
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

static GraphLib.WriteGml(*args)

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

Parameters
Returns