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
- 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
- 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
- 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
- NodesFirst = 1
First, all nodes are given, then followed by all edges.
- 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
- 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
- class pyTooling.Graph.GraphML.Key[source]
Inheritance
- __init__(identifier, context, name, type)[source]
- Parameters:
identifier (str)
context (AttributeContext)
name (str)
type (AttributeTypes)
- Return type:
None
- class pyTooling.Graph.GraphML.Graph[source]
Inheritance
- __init__(document, identifier)[source]
- Parameters:
document (GraphMLDocument)
identifier (str)
- Return type:
None