Skip to content

Commit

Permalink
rename class and adjust import statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Ge-sa committed Apr 11, 2024
1 parent c632efe commit c51f298
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions examples/basic_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"source": [
"%pip install yfiles_jupyter_graphs_for_neo4j --quiet\n",
"%pip install neo4j --quiet\n",
"from yfiles_jupyter_graphs_for_neo4j.Yfiles_Neo4j_Graphs import YfilesNeo4jGraphs\n",
"from yfiles_jupyter_graphs_for_neo4j import Neo4jGraphWidget\n",
"from neo4j import GraphDatabase"
]
},
Expand All @@ -25,7 +25,7 @@
"NEO4J_PASSWORD = \"movies\"\n",
"driver = GraphDatabase.driver(uri = NEO4J_URI, auth = (NEO4J_USERNAME, NEO4J_PASSWORD), database = 'movies')\n",
"\n",
"g = YfilesNeo4jGraphs(driver)"
"g = Neo4jGraphWidget(driver)"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions examples/configurations_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"source": [
"%pip install yfiles_jupyter_graphs_for_neo4j --quiet\n",
"%pip install neo4j --quiet\n",
"from yfiles_jupyter_graphs_for_neo4j.Yfiles_Neo4j_Graphs import YfilesNeo4jGraphs\n",
"from yfiles_jupyter_graphs_for_neo4j import Neo4jGraphWidget\n",
"from neo4j import GraphDatabase\n",
"from datetime import datetime\n",
"\n",
Expand All @@ -18,7 +18,7 @@
"NEO4J_PASSWORD = \"movies\"\n",
"driver = GraphDatabase.driver(uri = NEO4J_URI, auth = (NEO4J_USERNAME, NEO4J_PASSWORD), database = 'movies')\n",
"\n",
"g = YfilesNeo4jGraphs(driver)"
"g = Neo4jGraphWidget(driver)"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions examples/selection_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
"source": [
"%pip install yfiles_jupyter_graphs_for_neo4j --quiet\n",
"%pip install neo4j --quiet\n",
"from yfiles_jupyter_graphs_for_neo4j.Yfiles_Neo4j_Graphs import YfilesNeo4jGraphs\n",
"from yfiles_jupyter_graphs_for_neo4j import Neo4jGraphWidget\n",
"from neo4j import GraphDatabase\n",
"\n",
"NEO4J_URI = \"neo4j+ssc://demo.neo4jlabs.com\" \n",
"NEO4J_USERNAME = \"movies\"\n",
"NEO4J_PASSWORD = \"movies\"\n",
"driver = GraphDatabase.driver(uri = NEO4J_URI, auth = (NEO4J_USERNAME, NEO4J_PASSWORD), database = 'movies')\n",
"\n",
"g = YfilesNeo4jGraphs(driver)"
"g = Neo4jGraphWidget(driver)"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/yfiles_jupyter_graphs_for_neo4j/Yfiles_Neo4j_Graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
POSSIBLE_EDGE_BINDINGS = {'color', 'thickness_factor', 'property', 'label'}


class YfilesNeo4jGraphs:
class Neo4jGraphWidget:
_driver = None
_node_configurations = {}
_edge_configurations = {}
Expand Down
2 changes: 2 additions & 0 deletions src/yfiles_jupyter_graphs_for_neo4j/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# see Yfiles_Neo4j_Graphs.py

from .Yfiles_Neo4j_Graphs import Neo4jGraphWidget

0 comments on commit c51f298

Please sign in to comment.