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
- 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
- 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
- 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
- NodesFirst = 1
First, all nodes are given, then followed by all edges.
- 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
- class pyTooling.Graph.GraphML.Base[source]
Base-class for all GraphML data model classes.
Inheritance
- class pyTooling.Graph.GraphML.BaseWithID(identifier)[source]
Inheritance
- Parameters:
identifier (str)
- class pyTooling.Graph.GraphML.BaseWithData(identifier)[source]
Inheritance
- Parameters:
identifier (str)
- class pyTooling.Graph.GraphML.Key(identifier, context, name, type)[source]
Inheritance
- Parameters:
identifier (str)
context (AttributeContext)
name (str)
type (AttributeTypes)
- __init__(identifier, context, name, type)[source]
- Parameters:
identifier (str)
context (AttributeContext)
name (str)
type (AttributeTypes)
- Return type:
None
- class pyTooling.Graph.GraphML.Data(key, data)[source]
Inheritance
- class pyTooling.Graph.GraphML.Node(identifier)[source]
Inheritance
- Parameters:
identifier (str)
- class pyTooling.Graph.GraphML.Edge(identifier, source, target)[source]
Inheritance
- class pyTooling.Graph.GraphML.BaseGraph(identifier=None)[source]
Inheritance
- Parameters:
identifier (str | None)
- class pyTooling.Graph.GraphML.Graph(document, identifier)[source]
Inheritance
- Parameters:
document (GraphMLDocument)
identifier (str)
- __init__(document, identifier)[source]
- Parameters:
document (GraphMLDocument)
identifier (str)
- Return type:
None
- class pyTooling.Graph.GraphML.Subgraph(nodeIdentifier, graphIdentifier)[source]
Inheritance
- class pyTooling.Graph.GraphML.GraphMLDocument(identifier='G')[source]
Inheritance
- Parameters:
identifier (str)
- class property HasClassAttributes: bool
Check if class has Attributes.
- Returns:
True
, if the class has Attributes.