formatPathways function

Format cytoscape nested networks