In [1]:
%%capture
%reload_ext cypher
Define URL for connection
In [2]:
from libs.graph import connect_icypher
In [3]:
%cypher match (n) return n limit 1
Out[3]:
In [4]:
%%cypher
match (n) return n limit 2
Out[4]:
In [21]:
results = %cypher MATCH (a)-[]-(b) RETURN a, b limit 3
In [22]:
# Pandas
results.get_dataframe()
Out[22]:
In [23]:
# Networkx
results.get_graph()
Out[23]:
In [24]:
%matplotlib inline
#results.plot()
In [25]:
results.draw()
Out[25]:
In [ ]: