Esempio n. 1
0
import numpy
import math
import AtoB
import matplotlib.pyplot as plt
import random
import networkx as nx
import pdb
import pickle
import generateGraph

print "Gnutella P2P Network:"
print "Source: http://snap.stanford.edu/data/p2p-Gnutella08.html"
print "The Path Concatenation Algorithm (PCA) has been applied to an induced subgraph of the above graph consisting of 500 nodes"
while(True):
	node1 = int(input("Enter node 1: "))
	node2 = int(input("Enter node 2: "))
	AtoB.main(0, "RW", 'gnutella', [node1,node2])
	condition = raw_input("\nContinue? (Y\N): ")
	if condition != 'Y':
		break
Esempio n. 2
0
import numpy
import math
import AtoB
import matplotlib.pyplot as plt
import random
import networkx as nx
import pdb
import pickle
import generateGraph

print "Word Morph Game Network:"
print "The Path Concatenation Algorithm (PCA) has been applied to the above graph"
while(True):
	word1 = raw_input("Enter word 1: ")
	word2 = raw_input("Enter word 2: ")
	AtoB.main(0, "RW", 'wordmorph', [word1,word2])
	condition = raw_input("\nContinue? (Y\N): ")
	if condition != 'Y':
		break
Esempio n. 3
0
import numpy
import math
import AtoB
import matplotlib.pyplot as plt
import random
import networkx as nx
import pdb
import pickle
import generateGraph


#node1 = int(input("Enter node 1: "))
#node2 = int(input("Enter node 2: "))

#generateGraph.runthis()

#AtoB.main(0, "RW", 'gnutella', [node1,node2])
AtoB.main(0, "RW", 'gnutella', [0,1])