def delete_child ( self, object, index ):
if isinstance( child, Subgraph ):<EOL><INDENT>object.subgraphs.pop(index)<EOL><DEDENT>elif isinstance( child, Cluster ):<EOL><INDENT>object.clusters.pop( index )<EOL><DEDENT>elif isinstance( child, Node ):<EOL><INDENT>object.nodes.pop( index )<EOL><DEDENT>elif isinstance( child, Edge ):<EOL><INDENT>object.edges.pop( index )<EOL><DEDENT>else:<EOL><INDENT>pass<EOL><DEDENT>
Deletes a child at a specified index from the object's children.