Questions tagged [graph-data-science]

Graph Data Science is a science-driven approach to gain knowledge from the relationships and structures in data, typically to power predictions. It describes a toolbox of techniques that help data scientists answer questions and explain outcomes using graph data.

Graph Data Science is a science-driven approach to gain knowledge from the relationships and structures in data, typically to power predictions. It describes a toolbox of techniques that help data scientists answer questions and explain outcomes using graph data.

Popular graph data science libraries

98 questions
5
votes
1 answer

Neo4j - Graph Data Science library - How to cypher-query against a named graph in Graph Catalog?

Creating a named graph from the main Neo4j Graph is documented. Beside, one also knows how to list, drop, check if a named graph already exists, e.g. CALL gds.graph.exists('my-store-graph') YIELD exists; However, I wonder if there is any method for…
JoyfulPanda
  • 867
  • 6
  • 14
4
votes
1 answer

ArticleRank appears to ignore relationship weights

I'm creating my first Neo4j (4.0.4) application and I'm trying to order results based on the weighted ArticleRank algorithm. Everything has been intuitive so far but I can't figure out why relationship weights do not affect the ArticleRank…
3
votes
1 answer

In Neo4j v4.0, Graph Data Science Library: why is Native Projection better than Cypher Projection in terms of performance?

The documentation Creating graphs in the catalog claims such performance advantange when using Native Projection over Cypher Projection, but does not give much explanation. Native projection Provides the best performance... Cypher projection The…
JoyfulPanda
  • 867
  • 6
  • 14
2
votes
1 answer

How to programmatically define sankey labels in Plotly

So I've created a way to programmatically define the source, target and value lists for the sankey diagrams in plotly starting with a list of dictionaries. So if you were looking for a way to do that here it is. However, I'm stuck on figuring out a…
2
votes
1 answer

Complex Cypher Traversal with Math

I'm relatively new to Neo4j and graph databases, so bear with me. I want to traverse through our Neo4j database in the most efficient way possible. While traversing, I need to do some math along the way on edges and their values. At scale, our…
Ethan Posner
  • 343
  • 1
  • 2
  • 14
2
votes
1 answer

How do I graph an individual line for each the groups within a Javascript map object using D3.js

I have a dataset called graphData with three values, wavelength, magnitude, and name. let array = [ {name: "dataset 1", wavelength: 2, magnitude: 20} {name: "dataset 1", wavelength: 3, magnitude: 22} {name: "dataset 1", wavelength: 4, magnitude:…
2
votes
0 answers

Py2neo IndexError: index out of range on Graph.run with gds.alpha.allShortestPaths.stream

I'm try to run gds.alpha.allShortestPaths.stream in a py2neo.Graph instance That is my code: cypherCode = """CALL gds.alpha.allShortestPaths.stream({ nodeQuery: 'MATCH (n:AUTHOR) RETURN id(n) AS id', relationshipQuery: 'MATCH…
L.Stefan
  • 341
  • 1
  • 14
2
votes
1 answer

All arguments should have the same length. The length of argument `y` is 6, whereas the length of previous arguments ['year'] is 100

Library that I used import numpy as np import pandas as pd import seaborn as sns import plotly.express as px import matplotlib.pyplot as plt Dataset https://i.stack.imgur.com/k4hIL.png My Code sound_features = ['acousticness', 'danceability',…
2
votes
1 answer

Passing parameters to gds.create.graph in Neo4j

How do I pass parameters to gds.create.graph in Neo4j? For instance, what is wrong with this query? (I use py2neo) query = """ CALL gds.graph.create.cypher( 'betweenness', 'MATCH (n) WHERE n:Criminal AND id(n) in $nodes_in_component …
Sanjay Singh
  • 367
  • 1
  • 11
1
vote
1 answer

Can not run graph with over 1 milion vertices using adjacency list in C

I want to create a graph with 2-3 million vertices using an adjacency list. The input is created randomly. When I ran a version that only prints out the increasing numbers of edges, it worked perfectly (returned 0). But when I add the BFS and DFS,…
bui hiep
  • 21
  • 3
1
vote
0 answers

How to make a visualization that shows every seconds data?

I get data in my job which contains datetime, Temperature, Current(mA), Brake release. This data is of a crane motor. In one day there are about 80k-100k rows in excel generated by the tags. I have to make a visulization where the datetime, current,…
1
vote
3 answers

Neo4j group nodes with property

In Neo4j, I want to create a query that returns nodes grouped on common property without altering my graph. For example, if I have the following graph where each person has a property corresponding to his department in the company: I want my query…
1
vote
1 answer

procedure `gds.graph.create.cypher` not found

I got this error message : There is no procedure with the name `gds.graph.create.cypher` registered for this database instance. Please ensure you've spelled the procedure name correctly and that the procedure is properly deployed. I think that the…
1
vote
1 answer

Add existing node properties to link prediction pipeline in neo4j?

How do I add existing Node properties of a node in the graph projection to the ML pipeline? As far as I know, the gds.beta.pipeline.linkPrediction.addNodeProperty procedure takes different other procedures to creates node embeddings as new node…
Meghana S
  • 75
  • 6
1
vote
1 answer

Attribute error when trying to construct GDS graph from a data frame

I am gettin an attribute error when using graphdatascience to construct a graph from a simple dataframe. I am unsure what is missing from my code to make it work import pandas as pd import neo4j from graphdatascience import GraphDataScience gds =…
1
2 3 4 5 6 7