Skip to content

Commit bb8588a

Browse files
authored
Merge pull request #6 from ybaktir/master
This version is for 0.0.3. It adds major new functionalities and updates the existing ones.
2 parents 8437405 + 97dc956 commit bb8588a

19 files changed

+4223
-673
lines changed

CHANGELOG.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## [0.0.3] - [Unreleased]
8+
### Added (by [@ybaktir](https://github.com/ybaktir))
9+
- CHANGELOG.md
10+
- nx.draw(G)
11+
- G.nodes
12+
- G.edges
13+
- G.clear() to delete all the data, acts similar to G.delete_all()
14+
- len(G) to display number of nodes
15+
- G.remove_node()
16+
17+
### Changed (by [@ybaktir](https://github.com/ybaktir))
18+
- reorganized the entire file structure to better separate the algorithms files from the graph files.
19+
- changed README.md with new figures, dependencies
20+
- all the $nodeLabel, $relationshipType params changed to $node_label and $relationship_type for better code readibility
21+
- updated G.load_got() to fix constraint errors
22+
- updated G.load_euroads() to fix constraint errors
23+
- updated G.load_twitter() to fix constraint errors
24+
- updated G.add_edge() to enable property assignment
25+
- updated G.add_node() to enable property assignment
26+
27+
28+
### Removed
29+
- No removals
30+
31+
### Known Issues (by [@ybaktir](https://github.com/ybaktir))
32+
- len(G) doesn't return the correct value, uses config restrictions
33+
- after G.load_got() and after nx.draw(G), some of the relationship labels don't show on the visualization
34+
35+
## [0.0.2] - 2020-08-25
36+
### Added (by [@ybaktir](https://github.com/ybaktir))
37+
- G.delete_all()
38+
- G.load_got()
39+
- G.load_euroads()
40+
- G.load_twitter()
41+
42+
### Changed (by [@ybaktir](https://github.com/ybaktir))
43+
- All "apoc" based code is moved to Graph Data Science library aka "gds" since apoc is not supported by neo4j 4.x.
44+
- All {params} syntax moved to $params syntax since {params} no longer supported.
45+
- Updated README.md.
46+
- Updated the examples file.
47+
48+
### Removed (by [@ybaktir](https://github.com/ybaktir))
49+
- Removed functionality of harmonic centrality, average clustering as they are not supported by gds.
50+
- Removed test file as it was hard to maintain the code because of too many changes. The file will back in the future versions.

README.adoc

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
This library provides NetworkX API for https://github.com/neo4j/graph-data-science/[Neo4j Graph Data Science^].
44
You should be able to use it as you would NetworkX but algorithms will run against Neo4j.
55

6+
== Dependencies
7+
8+
- ≥ Neo4j 4.x
9+
- Graph Data Science Library Plugin
10+
- APOC Plugin
11+
- ≥ Python 3.6
12+
- ≥ neo4j-driver 4.x
13+
614
== Installation
715

816
You can install the library by running the following command:
@@ -12,10 +20,11 @@ You can install the library by running the following command:
1220
pip install networkx-neo4j
1321
----
1422

15-
You'll also need to install Neo4j and the Graph Algorithms library.
1623

17-
image:images/plugin.png[plugin]
18-
image:images/gds.png[gds]
24+
You'll also need to install APOC and the Graph Algorithms library.
25+
26+
image:images/plugin.jpg[plugin]
27+
image:images/gds.jpg[gds]
1928

2029
== Usage
2130

@@ -28,7 +37,7 @@ First let's import our libraries and create an instance of the Neo4j driver:
2837
>>> from neo4j import GraphDatabase
2938
>>> import nxneo4j as nx
3039
31-
>>> driver = GraphDatabase.driver(uri="bolt://localhost",auth=("neo4j","neo"))
40+
>>> driver = GraphDatabase.driver(uri="bolt://localhost",auth=("neo4j","your_password"))
3241
----
3342
For undirected Graphs:
3443
[source, python]
@@ -91,3 +100,8 @@ The available algoritms in `nxneo4j` are:
91100
[1, 3, 4, 5]
92101
93102
----
103+
104+
== Credits
105+
Yusuf Baktir
106+
Mark Needham
107+
David Jablonski

0 commit comments

Comments
 (0)