Open delfimpandiani opened 5 years ago
from sne import ScholarlyNetworkEngine
import time
t1_start = time.perf_counter()
t2_start = time.process_time()
# +++ ScholarlyNetworkEngine Objects +++
my_sne = ScholarlyNetworkEngine("metadata_sample.csv", "citations_sample.csv")
# +++ Methods +++
my_sne.citation_graph()
my_sne.coupling('10.7717/peerj-cs.86','10.7717/peerj-cs.110')
my_sne.aut_distance('Michel, Dumontier')
my_sne.find_cycles()
my_sne.cit_count_year('Michel, Dumontier', None)
t1_stop = time.perf_counter()
t2_stop = time.process_time()
print("--------------------------------------------------")
print("Elapsed time: %.6f [seconds]" % (t1_stop - t1_start))
print("CPU process time: %.6f [milliseconds]" % (t2_stop - t2_start))
print("--------------------------------------------------")