Skip to content

Commit

Permalink
major fixing for magic cells
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusmota committed Sep 14, 2024
1 parent 9552393 commit ee7d220
Show file tree
Hide file tree
Showing 7 changed files with 341 additions and 1,353 deletions.
File renamed without changes.
3 changes: 3 additions & 0 deletions .Trash-1000/info/4.Neo4j and yFiles.ipynb.trashinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[Trash Info]
Path=labs/pt-br/4.Neo4j%20and%20yFiles.ipynb
DeletionDate=2024-09-14T05:58:33
6 changes: 3 additions & 3 deletions .ipython/extensions/neo4j_cypher_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def vis_network(nodes, edges, physics=True):
html = html.format(id=unique_id, nodes=json.dumps(nodes), edges=json.dumps(edges), physics=json.dumps(physics))

try:
os.makedirs('graphs')
os.makedirs('resources/graphs')
except OSError as e:
pass

Expand All @@ -83,7 +83,7 @@ def vis_network(nodes, edges, physics=True):
file.write(html)
file.close()

return IFrame(filename, width="100%", height="450")
return IFrame(filename, width="100%", height="400")

def draw(graph, options, physics=False, limit=300):
# The options argument should be a dictionary of node labels and property keys; it determines which property
Expand All @@ -94,7 +94,7 @@ def draw(graph, options, physics=False, limit=300):
MATCH (n)
WITH n, rand() AS random
ORDER BY random
LIMIT 300
LIMIT 150
OPTIONAL MATCH (n)-[r]->(m)
RETURN n AS source_node,
id(n) AS source_id,
Expand Down
Loading

0 comments on commit ee7d220

Please sign in to comment.