''' Created on 10/nov/2014 @author: Simone ''' import datetime import time import dispersion import snap from snap import * G1 = snap.LoadEdgeList(snap.PUNGraph, "facebook_combined.txt", 0, 1) dispersion.printNodesInformations_CSV(G1, "facebook_combined.csv", "all")
''' Created on 20/nov/2014 @author: Simone ''' import datetime import time import dispersion import snap from snap import * dispersion.fromGexfToEdge("reteCriminale.gexf", "reteCriminale.edge"); G1 = snap.LoadEdgeList(snap.PUNGraph, "reteCriminale.edge", 0, 1) current = datetime.datetime.now() #dispersion.printNodesInformations(G1, 1) dispersion.printNodesInformations_XML(G1, "reteCriminale.xml", "all") dispersion.printNodesInformations_CSV(G1, "reteCriminale.csv", "all")
G1.AddEdge(1,8) G1.AddEdge(2,3) G1.AddEdge(2,4) G1.AddEdge(2,5) G1.AddEdge(2,6) G1.AddEdge(2,8) G1.AddEdge(3,6) G1.AddEdge(3,8) G1.AddEdge(4,5) G1.AddEdge(4,6) G1.AddEdge(4,8) G1.AddEdge(5,6) G1.AddEdge(5,8) G1.AddEdge(5,9) G1.AddEdge(6,8) G1.AddEdge(6,9) G1.AddEdge(7,8) G1.AddEdge(9,8) G1.AddEdge(9,10) G1.AddEdge(9,11) G1.AddEdge(10,8) G1.AddEdge(10,11) G1.AddEdge(10,12) G1.AddEdge(11,8) G1.AddEdge(11,12) G1.AddEdge(12,8) current = datetime.datetime.now() dispersion.printNodesInformations_XML(G1, "article_graph.xml", "all") dispersion.printNodesInformations_CSV(G1, "article_graph.csv", "all") print datetime.datetime.now() - current
""" Created on 10/nov/2014 @author: Simone """ import datetime import time import dispersion import snap from snap import * G1 = snap.LoadEdgeList(snap.PUNGraph, "AstroPh.txt", 0, 1) dispersion.printNodesInformations_CSV(G1, "AstroPh.csv", "all")