http://js.cytoscape.org/#collection/data
Get whether the edge is a loop (i.e. source same as target). http://js.cytoscape.org/#edge.isLoop
Get whether the edge is simple (i.e. source different than target). http://js.cytoscape.org/#edge.isSimple
http://js.cytoscape.org/#collection/data