In [ ]:
import random
import graphistry as g
import pandas as pd
In [ ]:
g.__version__
In [ ]:
API_KEY = 'Go to www.graphistry.com/api-request to get your API key'
In [ ]:
g.register(api=2)
In [ ]:
edges = [{'src': x, 'dst': (x + 1) % 100000} for x in range(0, 100000)]
for i, edge in enumerate(edges):
for fld in range(0, 100):
edge['fld' + str((fld))] = (fld + i) % 100
edges = pd.DataFrame(edges)
edges[:3]
In [ ]:
g.edges(edges).bind(source='src', destination='dst').plot()
In [ ]:
edges = [{'src': x, 'dst': (x + 1) % 100000} for x in range(0, 100000)]
for i, edge in enumerate(edges):
for fld in range(0, 100):
edge['fld' + str((fld))] = random.random()
edges = pd.DataFrame(edges)
edges[:3]
In [ ]:
g.edges(edges).bind(source='src', destination='dst').plot()
In [ ]:
edges = [{'src': x, 'dst': (x + 1) % 100000} for x in range(0, 100000)]
for i, edge in enumerate(edges):
for fld in range(0, 100):
edge['fld' + str((fld))] = 'String' + str(random.random())
edges = pd.DataFrame(edges)
edges[:3]
In [ ]:
g.edges(edges).bind(source='src', destination='dst').plot()
In [ ]:
edges = [{'src': (x % 300), 'dst': ((x + 1) % 800)} for x in range(0, 800000)]
for i, edge in enumerate(edges):
for fld in range(0, 10):
edge['fld' + str((fld))] = (fld + i) % 100
edges = pd.DataFrame(edges)
edges[:3]
In [ ]:
g.edges(edges).bind(source='src', destination='dst').plot()
In [ ]:
edges = [{'src': (x % 300), 'dst': ((x + 1) % 800)} for x in range(0, 800000)]
for i, edge in enumerate(edges):
for fld in range(0, 10):
edge['fld' + str((fld))] = random.random()
edges = pd.DataFrame(edges)
edges[:3]
In [ ]:
g.edges(edges).bind(source='src', destination='dst').plot()
In [ ]:
edges = [{'src': (x % 300), 'dst': ((x + 1) % 800)} for x in range(0, 800000)]
for i, edge in enumerate(edges):
for fld in range(0, 10):
edge['fld' + str((fld))] = 'String + ' + str(random.random())
edges = pd.DataFrame(edges)
edges[:3]
In [ ]:
g.edges(edges).bind(source='src', destination='dst').plot()