Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
11-25-2021 10:58 PM
first,I create nodes and relationships on browser (http://127.0.0.1:7474/browser/😞
MERGE (mark:Person:DevRel {name: "Mark"})
MERGE (lju:Person:DevRel {name: "Lju"})
MERGE (praveena:Person:Engineering {name: "Praveena"})
MERGE (zhen:Person:Engineering {name: "Zhen"})
MERGE (martin:Person:Engineering {name: "Martin"})
MERGE (joe:Person:Field {name: "Joe"})
MERGE (stefan:Person:Field {name: "Stefan"})
MERGE (alicia:Person:Product {name: "Alicia"})
MERGE (jake:Person:Product {name: "Jake"})
MERGE (john:Person:Product {name: "John"})
MERGE (jonny:Person:Sales {name: "Jonny"})
MERGE (anthony:Person:Sales {name: "Anthony"})
MERGE (rik:Person:Sales {name: "Rik"})
MERGE (zhen)-[:KNOWS]-(stefan)
MERGE (zhen)-[:KNOWS]-(lju)
MERGE (zhen)-[:KNOWS]-(praveena)
MERGE (zhen)-[:KNOWS]-(martin)
MERGE (mark)-[:KNOWS]-(jake)
MERGE (alicia)-[:KNOWS]-(jake)
MERGE (jonny)-[:KNOWS]-(anthony)
MERGE (john)-[:KNOWS]-(rik)
MERGE (alicia)-[:FOLLOWS]->(joe)
MERGE (joe)-[:FOLLOWS]->(mark)
MERGE (joe)-[:FOLLOWS]->(praveena)
MERGE (joe)-[:FOLLOWS]->(zhen)
MERGE (mark)-[:FOLLOWS]->(stefan)
MERGE (stefan)-[:FOLLOWS]->(joe)
MERGE (praveena)-[:FOLLOWS]->(joe)
MERGE (lju)-[:FOLLOWS]->(jake)
MERGE (alicia)-[:FOLLOWS]->(jonny)
MERGE (zhen)-[:FOLLOWS]->(john)
MERGE (anthony)-[:FOLLOWS]->(joe)
I create a graph on browser (http://127.0.0.1:7474/browser/)
code:
CALL gds.graph.create(
'pg',
['Product','Engineering','DevRel','Sales'],
{
KNOWS: {orientation: 'UNDIRECTED'},
FOLLOWS:{}
},
{
nodeProperties: 'name'
}
)
then i get a graph:
but i don't know how to use the graph on neo4j browser, how to show it like the picture below
The figure above is the browser rendering after establishing the nodes and relationships,but the graph i created use gds.graph.create
command cannnot be displayed on browser。Can someone tell me what method I can use to show the graph [ gp
] i created before ??
11-26-2021 08:24 AM
You can use gds.graph.list()
to return information about all of the graph projections that you've created.
If you want to query your graph projection, you could try out our experimental implementation of Cypher on the graph projection - Cypher on GDS graph - Neo4j Graph Data Science
11-26-2021 06:48 PM
thank you for your reply,
Cypher on GDS graph
only can be used in enterprise edition? In community edition,I encountered a problem with my newly created database ‘gdsdb’ ,Database "gdsdb" is unavailable, its status is "offline".
Is there any other way?
11-26-2021 06:59 PM
If you have multiple graph databases on same machine and acquiring same port on laptop/desktop then it won't let you start the second one unless you stop the first one.
Thanking you
Sameer S G
11-26-2021 07:19 PM
thanks, I stop the first database,and then change the conf, dbms.default_database=gdsdb
. then restart neo4j. But it still doesn't work well.
11-26-2021 07:35 PM
Please configure the DB instance properly it may be running out of memory. So please set proper JVM tuning parameters/arguments that are acceptable. There is tool known as memrec you can use it and reconfigure memory.
Hope this helps you start the instance that you have
Thanking you
Sameer Sudhir G
12-02-2021 12:57 PM
Yeah, it's kind of a bummer that you can't "visualize" the graph projections. Maybe in a future release? It would be nice to have projections like a database you could :use and see the schema you created and query it like a normal graph db.
I've used the cypher on GDS and pulled it into Power BI to visualize, but that's not ideal either. You can't even visualize them in Bloom at all, which would be another nice option in the future!
12-26-2021 03:14 AM
You can write your own Cypher queries to view the the graph that you want to analyse.
You can use Neo4j Desktop and tools like Euler that come with it for more detailed visualisation. But please see the compatibility matrix for correct version compatibility.
Thanking you
G Sameer
All the sessions of the conference are now available online