The MetaNetwork class is a container for a meta-network extracted from DyNetML. The base class stores network data in dictionaries; using a graphing library to store network data requires that you use one of the two SubClasses. Manipulating networks will not guarantee corresponding modifications of data contained in __node_tree; you will need to make any desired transformations to the nodes yourself.
Variables: |
|
---|
Create a node in a give nodeset in a give nodeclass. If a set of properties are specified, add the properties.
Parameters: |
|
---|
Create a new nodeset property
Parameters: |
|
---|
Parameters: |
|
---|---|
Returns: | self.__node_tree[nodeclass_name][nodeset_name][node] |
Return type: |
Returns: | __node_tree[nodeclass_name] |
---|---|
Return type: | dynetmlparsingutils.nodeclass_dict |
Parameters: |
|
---|---|
Returns: | self.__node_tree[nodeclass_name][nodeset_name] |
Return type: | dmlpu.nodeset_tuple |
Parses XML containing a meta-network and loads the contents. If no properties, nodeclasses, or networks are specified to be included, all of them will be included. Lists of included and ignored elements are exclusive - only specify a set to include or a set to ignore for each category.
Parameters: |
|
---|
Parses the content of an lxml._Element containing a meta-network and loads the contents. If no properties, nodeclasses, or networks are specified to be included, all of them will be included. Lists of included and ignored elements are exclusive - only specify a set to include or a set to ignore for each category.
Parameters: |
|
---|
Rename a particular node, both in the node tree and in the networks containing it.
Parameters: |
|
---|
Set the value of a node property
Parameters: |
|
---|
Takes two nodesets and combines them in a new nodeset. Properties and entries from the first nodeset override those from the second nodeset.
Parameters: |
|
---|