diff --git a/changelog.md b/changelog.md index 46cd6c91..37b975a8 100644 --- a/changelog.md +++ b/changelog.md @@ -7,6 +7,7 @@ ## New features * Allow visualization based only on relationship DataFrames, without specifying node DataFrames in `from_dfs` +* Add relationship properties to `VisualizationGraph` when constructing via `from_gds`. ## Bug fixes diff --git a/examples/gds-example.ipynb b/examples/gds-example.ipynb index f9a36b60..5a3aecf2 100644 --- a/examples/gds-example.ipynb +++ b/examples/gds-example.ipynb @@ -62,6 +62,9 @@ "outputs": [], "source": [ "# Run some algorithms to use later for visualization\n", + "gds.nodeSimilarity.mutate(\n", + " G, mutateRelationshipType=\"SIMILAR\", mutateProperty=\"similarity\"\n", + ")\n", "gds.pageRank.mutate(G, mutateProperty=\"pagerank\")\n", "gds.louvain.mutate(G, mutateProperty=\"componentId\")" ] @@ -92,6 +95,15 @@ "G_sample.node_properties()" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "G_sample.relationship_properties()" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -107,7 +119,6 @@ "source": [ "from neo4j_viz.gds import from_gds\n", "\n", - "# TODO inform about automatic size scaling\n", "VG = from_gds(\n", " gds,\n", " G_sample,\n", @@ -118,7 +129,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 9, "metadata": { "tags": [ "preserve-output" @@ -185,27 +196,27 @@ "}\n", "\n", " \n", - "