1

I am trying to visualize the queries of a graph created in AGE using AGE Viewer but I can't see the graph I created. This is the issue enter image description here

I followed the exact steps to visualizing a graph using npm run setup followed by npm run start. How can I solve this and make graph path display so I can easily visualize queries?

Tito
  • 289
  • 8

3 Answers3

1

In the prompt at the top of the page type your query and execute after that, the graph will appear.
A query example:

SELECT * from cypher('graph_name',
$$
MATCH (V1)-[R]-(V2)
RETURN V1,R,V2
$$) as (V1 agtype, R agtype, V2 agtype);
0

It looks like this is the standard screen for when you successfully connect your database to AGE Viewer. To visualize the edges, you need to go to the top of the screen where it will be a query bar and other options to select. There, you can select the Current Graph that you are working on and then type your queries in the query bar.

AGE Viewer Screen

Matheus Farias
  • 716
  • 1
  • 10
  • I can't see the current graph that's the issue. It shows "no data" but when i run `SELECT * FROM ag_graph;` in the terminal, it shows the graph. – Tito Apr 19 '23 at 17:46
0

Try populating the graph with nodes and edges and make sure it's not empty.

If this doesn't solve the problem, make sure that you cloned AGE viewer in the directory of the database you are currently using to visualize the graphs.

Also, I am not sure but your system but usually when we start AGE viewer, we get a screen that prompts us to enter information about database type, name | connection URL, path | username, password and some others. Make sure to fill them correctly to access the right graph.

  • I already did that, I entered the details immediately it popped up and I created nodes for person and city and edges between them. I did all that – Tito Apr 20 '23 at 07:17
  • Are you able to see any graphs by retrieving them in CLI? – Jawad Ali Abbasi Apr 21 '23 at 10:27
  • I am able to see the result of queries of the graph but not visible on AGE Viewer. Its really challenging, anymore ideas on how can I solve this? – Tito Apr 22 '23 at 14:19