Get whether the node is a compound child (i.e. contained within a node) http://js.cytoscape.org/#node.isChild
Get whether the node is childless (i.e. a node with no child nodes) http://js.cytoscape.org/#node.isChildless
Get whether the node is an orphan (i.e. a node with no parent) http://js.cytoscape.org/#node.isOrphan
Get whether the node is a compound parent (i.e. a node containing one or more child nodes) http://js.cytoscape.org/#node.isParent
http://js.cytoscape.org/#collection/compound-nodes