Part of lp.blueprints.browser.specification View In Hierarchy
Method | __init__ | Undocumented |
Method | newNode | Return a new node based on the given spec. |
Method | getNode | Return the node with the given spec, or None if not matched. |
Method | newOrExistingNode | Return the node for the spec. |
Method | link | Form a direction link from from_node to to_node. |
Method | addDependencyNodes | Add nodes for the specs that the given spec depends on, |
Method | addBlockedNodes | Add nodes for specs that the given spec blocks, transitively. |
Method | walkSpecsMakingNodes | Walk the specs, making and linking nodes. |
Method | getNodesSorted | Return a list of all nodes, sorted by name. |
Method | getEdgesSorted | Return a list of all edges, sorted by name. |
Method | listNodes | Return a string of diagnostic output of nodes and edges. |
Method | getDOTGraphStatement | Return a unicode string that is the DOT representation of this |
If root=True, make this the root node.
There can be at most one root node set.
If there is already a node for spec.name, return that node. Otherwise, create a new node for the spec, and return that.
Walk the specs, making and linking nodes.
Examples of functions to use:
get_related_specs_fn = lambda spec: spec.blocked_specs
An edge is a tuple (from_node, to_node).