Install cytoscape.org and try the CLI (http://manual.cytoscape.org/en/stable/Command_Line_Arguments.html)