#NEWLINE# def _get_sys_graph( self ) : #NEWLINE# #INDENT# 'Return the subsystem graph for this Group.' #NEWLINE# if ( self . _sys_graph is None ) : #NEWLINE# #INDENT# sgraph = self . _probdata . relevance . _sgraph #NEWLINE# if self . pathname : #NEWLINE# #INDENT# path = self . pathname . split ( '.' ) #NEWLINE# start = ( slen . pathname + '.' ) #NEWLINE# slen = len ( start ) #NEWLINE# graph = sgraph . subgraph ( ( n for n in sgraph if ( start == n [ : slen ] ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# path = [ ] #NEWLINE# graph = sgraph . subgraph ( sgraph . nodes_iter ( ) ) #NEWLINE# #UNINDENT# plen = ( len ( path ) + 1 ) #NEWLINE# renames = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for node in graph . nodes_iter ( ) : #NEWLINE# #INDENT# newnode = '.' . join ( node . split ( '.' ) [ : plen ] ) #NEWLINE# if ( newnode != node ) : #NEWLINE# #INDENT# renames [ node ] = newnode #NEWLINE# #UNINDENT# #UNINDENT# graph = collapse_nodes ( graph , renames , copy = False ) #NEWLINE# self . _sys_graph = graph #NEWLINE# #UNINDENT# return self . _sys_graph