class_docstr: Calculates and outputs NetworkX-based measures for an input network
  
  Example
  -------
  >>> import nipype.interfaces.cmtk as cmtk
  >>> nxmetrics = cmtk.NetworkXMetrics()
  >>> nxmetrics.inputs.in_file = 'subj1.pck'
  >>> nxmetrics.run()                 # doctest: +SKIP
class_docstr_tok: ["Calculates","and","outputs","NetworkX-based","measures","for","an","input","network","Example","--","--","--","-",">",">",">","import","nipype.interfaces.cmtk","as","cmtk",">",">",">","nxmetrics","=","cmtk.NetworkXMetrics","(",")",">",">",">","nxmetrics.inputs.in_file","=","'subj1.pck'",">",">",">","nxmetrics.run","(",")","#","doctest",":","+SKIP"]
code: def _list_outputs(self):
      outputs = self.output_spec().get()
      outputs["k_core"] = op.abspath(
          self._gen_outfilename(self.inputs.out_k_core, "pck")
      )
      outputs["k_shell"] = op.abspath(
          self._gen_outfilename(self.inputs.out_k_shell, "pck")
      )
      outputs["k_crust"] = op.abspath(
          self._gen_outfilename(self.inputs.out_k_crust, "pck")
      )
      outputs["gpickled_network_files"] = gpickled
      outputs["k_networks"] = kntwks
      outputs["node_measure_networks"] = nodentwks
      outputs["edge_measure_networks"] = edgentwks
      outputs["matlab_dict_measures"] = dicts
      outputs["global_measures_matlab"] = op.abspath(
          self._gen_outfilename("globalmetrics", "mat")
      )
      outputs["node_measures_matlab"] = op.abspath(
          self._gen_outfilename("nodemetrics", "mat")
      )
      outputs["edge_measures_matlab"] = op.abspath(
          self._gen_outfilename("edgemetrics", "mat")
      )
      outputs["matlab_matrix_files"] = [
          outputs["global_measures_matlab"],
          outputs["node_measures_matlab"],
          outputs["edge_measures_matlab"],
      ]
      outputs["pickled_extra_measures"] = op.abspath(
          self._gen_outfilename(
              self.inputs.out_pickled_extra_measures, "pck"
          )
      )
      return outputs
  
imports: import os.path
  import pickle
  import numpy
  import networkx
  from ...None import logging
  from ...utils.filemanip import split_filename
  from ..base import BaseInterface, BaseInterfaceInputSpec, traits, File, TraitedSpec, InputMultiPath, OutputMultiPath, isdefined
  from .base import have_cmp
label_desc: Use image node_id 2 for calling the NetworkXMetrics obj's underlying member method code with example usage: obj._list_outputs() and returns: outputs