Hi Davide,
I googled a little bit and found this link: http://manual.cytoscape.org/en/stable/Creating_Networks.html
Let me know if you need further help. Also consider using Cytoscape as a java (or python or whatever other supported language) library rather than a standalone software, if you want.