Node¶
- class understand.Node¶
Bases:
object
Graph plugin node object
A node in a graph. Nodes are created from
Graph
objects withnode
. Graphviz attributes can beset
. Usesync
to associateentities
,references
, or locations with the node.Methods Summary
Set node attribute.
Sync node to a reference, entities, or file location.
Methods Documentation
- set(name, value) None ¶
Set node attribute.
- Parameters:
name (str) – the attribute name
value (str) – the attribute value
- Return type:
None
Refer to Graphviz for available attributes.
- sync(ref) None ¶
- sync(arch) None
- sync(ent[, comparison_ent]) None
- sync(file[, line[, column]]) None
Sync node to a reference, entities, or file location.
- Parameters:
ref (understand.Ref) – a reference to sync
arch (understand.Arch) – an architecture to sync
ent (understand.Ent) – an entity to sync
comparison_ent (understand.Ent or None) – optional, an entity from the comparison database
file (understand.Ent or str) – a file entity or file path
line (int or None) – optional, a line number
column (int or None) – optional, a column number
- Return type:
None
Line and column numbers are 1-based.