pyTooling.Graph.GraphML

A data model to write out GraphML XML files.

Classes

  • AttributeContext: Enumeration of all attribute contexts.

  • AttributeTypes: Enumeration of all attribute types.

  • EdgeDefault: An enumeration describing the default edge direction.

  • ParsingOrder: An enumeration describing the parsing order of the graph’s representation.

  • IDStyle: An enumeration describing the style of identifiers (IDs).

  • Base: Base-class for all GraphML data model classes.

  • BaseWithID: Base-class for all GraphML data model classes.

  • BaseWithData: Base-class for all GraphML data model classes.

  • Key: Base-class for all GraphML data model classes.

  • Data: Base-class for all GraphML data model classes.

  • Node: Base-class for all GraphML data model classes.

  • Edge: Base-class for all GraphML data model classes.

  • BaseGraph: Base-class for all GraphML data model classes.

  • Graph: Base-class for all GraphML data model classes.

  • Subgraph: Base-class for all GraphML data model classes.

  • GraphMLDocument: Base-class for all GraphML data model classes.


Classes

class pyTooling.Graph.GraphML.AttributeContext(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Enumeration of all attribute contexts.

An attribute context describes to what kind of GraphML node an attribute can be applied.

Inheritance

Inheritance diagram of AttributeContext

__str__()[source]

Return str(self).

Return type:

str

class pyTooling.Graph.GraphML.AttributeTypes(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Enumeration of all attribute types.

An attribute type describes what datatype can be applied to an attribute.

Inheritance

Inheritance diagram of AttributeTypes

__str__()[source]

Return str(self).

Return type:

str

class pyTooling.Graph.GraphML.EdgeDefault(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

An enumeration describing the default edge direction.

Inheritance

Inheritance diagram of EdgeDefault

__str__()[source]

Return str(self).

Return type:

str

class pyTooling.Graph.GraphML.ParsingOrder(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

An enumeration describing the parsing order of the graph’s representation.

Inheritance

Inheritance diagram of ParsingOrder

NodesFirst = 1

First, all nodes are given, then followed by all edges.

__str__()[source]

Return str(self).

Return type:

str

class pyTooling.Graph.GraphML.IDStyle(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

An enumeration describing the style of identifiers (IDs).

Inheritance

Inheritance diagram of IDStyle

__str__()[source]

Return str(self).

Return type:

str

class pyTooling.Graph.GraphML.Base[source]

Base-class for all GraphML data model classes.

Inheritance

Inheritance diagram of Base

class property HasClassAttributes: bool

Check if class has Attributes.

Returns:

True, if the class has Attributes.

class property HasMethodAttributes: bool

Check if class has any method with Attributes.

Returns:

True, if the class has any method with Attributes.

class pyTooling.Graph.GraphML.BaseWithID(identifier)[source]

Inheritance

Inheritance diagram of BaseWithID

Parameters:

identifier (str)

__init__(identifier)[source]
Parameters:

identifier (str)

Return type:

None

class property HasClassAttributes: bool

Check if class has Attributes.

Returns:

True, if the class has Attributes.

class property HasMethodAttributes: bool

Check if class has any method with Attributes.

Returns:

True, if the class has any method with Attributes.

class pyTooling.Graph.GraphML.BaseWithData(identifier)[source]

Inheritance

Inheritance diagram of BaseWithData

Parameters:

identifier (str)

__init__(identifier)[source]
Parameters:

identifier (str)

Return type:

None

class property HasClassAttributes: bool

Check if class has Attributes.

Returns:

True, if the class has Attributes.

class property HasMethodAttributes: bool

Check if class has any method with Attributes.

Returns:

True, if the class has any method with Attributes.

class pyTooling.Graph.GraphML.Key(identifier, context, name, type)[source]

Inheritance

Inheritance diagram of Key

Parameters:
__init__(identifier, context, name, type)[source]
Parameters:
Return type:

None

class property HasClassAttributes: bool

Check if class has Attributes.

Returns:

True, if the class has Attributes.

class property HasMethodAttributes: bool

Check if class has any method with Attributes.

Returns:

True, if the class has any method with Attributes.

class pyTooling.Graph.GraphML.Data(key, data)[source]

Inheritance

Inheritance diagram of Data

Parameters:
__init__(key, data)[source]
Parameters:
Return type:

None

class property HasClassAttributes: bool

Check if class has Attributes.

Returns:

True, if the class has Attributes.

class property HasMethodAttributes: bool

Check if class has any method with Attributes.

Returns:

True, if the class has any method with Attributes.

class pyTooling.Graph.GraphML.Node(identifier)[source]

Inheritance

Inheritance diagram of Node

Parameters:

identifier (str)

__init__(identifier)[source]
Parameters:

identifier (str)

Return type:

None

class property HasClassAttributes: bool

Check if class has Attributes.

Returns:

True, if the class has Attributes.

class property HasMethodAttributes: bool

Check if class has any method with Attributes.

Returns:

True, if the class has any method with Attributes.

class pyTooling.Graph.GraphML.Edge(identifier, source, target)[source]

Inheritance

Inheritance diagram of Edge

Parameters:
__init__(identifier, source, target)[source]
Parameters:
Return type:

None

class property HasClassAttributes: bool

Check if class has Attributes.

Returns:

True, if the class has Attributes.

class property HasMethodAttributes: bool

Check if class has any method with Attributes.

Returns:

True, if the class has any method with Attributes.

class pyTooling.Graph.GraphML.BaseGraph(identifier=None)[source]

Inheritance

Inheritance diagram of BaseGraph

Parameters:

identifier (str | None)

__init__(identifier=None)[source]
Parameters:

identifier (str | None)

Return type:

None

class property HasClassAttributes: bool

Check if class has Attributes.

Returns:

True, if the class has Attributes.

class property HasMethodAttributes: bool

Check if class has any method with Attributes.

Returns:

True, if the class has any method with Attributes.

class pyTooling.Graph.GraphML.Graph(document, identifier)[source]

Inheritance

Inheritance diagram of Graph

Parameters:
__init__(document, identifier)[source]
Parameters:
Return type:

None

class property HasClassAttributes: bool

Check if class has Attributes.

Returns:

True, if the class has Attributes.

class property HasMethodAttributes: bool

Check if class has any method with Attributes.

Returns:

True, if the class has any method with Attributes.

class pyTooling.Graph.GraphML.Subgraph(nodeIdentifier, graphIdentifier)[source]

Inheritance

Inheritance diagram of Subgraph

Parameters:
  • nodeIdentifier (str)

  • graphIdentifier (str)

__init__(nodeIdentifier, graphIdentifier)[source]
Parameters:
  • nodeIdentifier (str)

  • graphIdentifier (str)

Return type:

None

class property HasClassAttributes: bool

Check if class has Attributes.

Returns:

True, if the class has Attributes.

class property HasMethodAttributes: bool

Check if class has any method with Attributes.

Returns:

True, if the class has any method with Attributes.

class pyTooling.Graph.GraphML.GraphMLDocument(identifier='G')[source]

Inheritance

Inheritance diagram of GraphMLDocument

Parameters:

identifier (str)

class property HasClassAttributes: bool

Check if class has Attributes.

Returns:

True, if the class has Attributes.

class property HasMethodAttributes: bool

Check if class has any method with Attributes.

Returns:

True, if the class has any method with Attributes.

__init__(identifier='G')[source]
Parameters:

identifier (str)

Return type:

None