How to coupute the diameter of a graph with differents categries of relationships

47 views
Skip to first unread message

Youssef Mourchid

unread,
Sep 3, 2018, 6:01:59 AM9/3/18
to Neo4j
Hello,

if can anyone help me to find a way to compute the diameter of a graph with different categories of edges i will be very thankful.

In my case my graph contains three categories of nodes (Person, speech, Time) and 6 relationships.

Analista de Sistemas Web/Mobile

unread,
Sep 3, 2018, 7:03:26 AM9/3/18
to ne...@googlegroups.com
public double getDistancia(double latitude, double longitude, double latitudePto, double longitudePto){ double dlon, dlat, a, distancia; dlon = longitudePto - longitude; dlat = latitudePto - latitude; a = Math.pow(Math.sin(dlat/2),2) + Math.cos(latitude) * Math.cos(latitudePto) * Math.pow(Math.sin(dlon/2),2); distancia = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a)); return 6378140 * distancia; /* 6378140 is the radius of the Earth in meters*/ } 

 

--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
JOSÉ RIBAMAR FERREIRA JUNIOR
          ANALISTA DE SISTEMAS
                    Joinville - SC
                   (47) 9844-23634
                   (47) 3436-4774

Youssef Mourchid

unread,
Sep 3, 2018, 7:06:26 AM9/3/18
to ne...@googlegroups.com
thank you, but where can i run this script, because i use cypher query in neo4j !!





Best regards.



----------------------------
MOURCHID Youssef
---------------------------------------------------------------------------------------------------
PhD Student - Computer Sciences and Telecommunications 
                           Laboratory Research (LRIT)
Faculty of sciences  University of Mohammed V Agdal-Rabat, Morocco 
-------------------------------------------------------------------------------





You received this message because you are subscribed to a topic in the Google Groups "Neo4j" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/neo4j/poFpzLqMVY0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to neo4j+un...@googlegroups.com.

Analista de Sistemas Web/Mobile

unread,
Sep 3, 2018, 7:10:09 AM9/3/18
to ne...@googlegroups.com
So what are you cypher query?

Youssef Mourchid

unread,
Sep 3, 2018, 7:14:12 AM9/3/18
to ne...@googlegroups.com
I have three nodes categories  (Person, Speech,TIME) and 6 different interactions (3 intra layer) and (3 inter layer), my problem is how to compute the diameter the hall graph (aggregation graph with the differents relationships)
Reply all
Reply to author
Forward
0 new messages