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[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

classmethod __contains__(value)

Return True if value is in cls.

value is in cls if: 1) value is a member of cls, or 2) value is the value of one of the cls’s members. 3) value is a pseudo-member (flags)

classmethod __getitem__(name)

Return the member matching name.

classmethod __iter__()

Return members in definition order.

classmethod __len__()

Return the number of members (no aliases)

class pyTooling.Graph.GraphML.AttributeTypes[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

classmethod __contains__(value)

Return True if value is in cls.

value is in cls if: 1) value is a member of cls, or 2) value is the value of one of the cls’s members. 3) value is a pseudo-member (flags)

classmethod __getitem__(name)

Return the member matching name.

classmethod __iter__()

Return members in definition order.

classmethod __len__()

Return the number of members (no aliases)

class pyTooling.Graph.GraphML.EdgeDefault[source]

An enumeration describing the default edge direction.

Inheritance

Inheritance diagram of EdgeDefault

__str__()[source]

Return str(self).

Return type:

str

classmethod __contains__(value)

Return True if value is in cls.

value is in cls if: 1) value is a member of cls, or 2) value is the value of one of the cls’s members. 3) value is a pseudo-member (flags)

classmethod __getitem__(name)

Return the member matching name.

classmethod __iter__()

Return members in definition order.

classmethod __len__()

Return the number of members (no aliases)

class pyTooling.Graph.GraphML.ParsingOrder[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

classmethod __contains__(value)

Return True if value is in cls.

value is in cls if: 1) value is a member of cls, or 2) value is the value of one of the cls’s members. 3) value is a pseudo-member (flags)

classmethod __getitem__(name)

Return the member matching name.

classmethod __iter__()

Return members in definition order.

classmethod __len__()

Return the number of members (no aliases)

class pyTooling.Graph.GraphML.IDStyle[source]

An enumeration describing the style of identifiers (IDs).

Inheritance

Inheritance diagram of IDStyle

__str__()[source]

Return str(self).

Return type:

str

classmethod __contains__(value)

Return True if value is in cls.

value is in cls if: 1) value is a member of cls, or 2) value is the value of one of the cls’s members. 3) value is a pseudo-member (flags)

classmethod __getitem__(name)

Return the member matching name.

classmethod __iter__()

Return members in definition order.

classmethod __len__()

Return the number of members (no aliases)

class pyTooling.Graph.GraphML.Base[source]

Base-class for all GraphML data model classes.

Inheritance

Inheritance diagram of Base

class pyTooling.Graph.GraphML.BaseWithID[source]

Inheritance

Inheritance diagram of BaseWithID

__init__(identifier)[source]
Parameters:

identifier (str)

Return type:

None

class pyTooling.Graph.GraphML.BaseWithData[source]

Inheritance

Inheritance diagram of BaseWithData

__init__(identifier)[source]
Parameters:

identifier (str)

Return type:

None

class pyTooling.Graph.GraphML.Key[source]

Inheritance

Inheritance diagram of Key

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

None

class pyTooling.Graph.GraphML.Data[source]

Inheritance

Inheritance diagram of Data

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

None

class pyTooling.Graph.GraphML.Node[source]

Inheritance

Inheritance diagram of Node

__init__(identifier)[source]
Parameters:

identifier (str)

Return type:

None

class pyTooling.Graph.GraphML.Edge[source]

Inheritance

Inheritance diagram of Edge

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

None

class pyTooling.Graph.GraphML.BaseGraph[source]

Inheritance

Inheritance diagram of BaseGraph

__init__(identifier=None)[source]
Parameters:

identifier (str | None)

Return type:

None

class pyTooling.Graph.GraphML.Graph[source]

Inheritance

Inheritance diagram of Graph

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

None

class pyTooling.Graph.GraphML.Subgraph[source]

Inheritance

Inheritance diagram of Subgraph

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

  • graphIdentifier (str)

Return type:

None

class pyTooling.Graph.GraphML.GraphMLDocument[source]

Inheritance

Inheritance diagram of GraphMLDocument

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

identifier (str)

Return type:

None