Class Node
source code
- Known Subclasses:
-
A node in the Scop hierarchy
sunid -- SCOP unique identifiers. e.g. '14986'
parent -- The parent node
children -- A list of child nodes
sccs -- SCOP concise classification string. e.g. 'a.1.1.2'
type -- A 2 letter node type code. e.g. 'px' for domains
description --
|
|
|
|
|
|
|
|
|
getChildren(self)
Return a list of children of this Node |
source code
|
|
|
getParent(self)
Return the parent of this Node |
source code
|
|
|
|
|
getAscendent(self,
node_type)
Return the ancenstor node of the given type, or None.Node type can a
two letter code or longer description. |
source code
|
|
Create a Node in the scop hierarchy. If a Scop instance is provided
to the constructor, this will be used to lookup related references using
the SQL methods. If no instance is provided, it is assumed the whole
tree exists and is connected.
|
Return a list of all decendent nodes of the given type. Node type can
a two letter code or longer description. e.g. 'fa' or 'family'
|
Return the ancenstor node of the given type, or None.Node type can a
two letter code or longer description. e.g. 'fa' or 'family'
|