It is formed by an only vertex class called Article with one attribute(Title, like "PhysRevB.51.17512"). It is exist one relationship "cites" between two articles. Now I want to create a query that calculete the strongly connected components, can I?
P.s:I can't add the author of article because in the .csv file, i have only the title of article.
Ed da qui poter fare varie query, giusto come esempio:
And from here you can make various queries, just as an example:
1) Articoli pubblicati dalla citta di Catania. Articles published by the city of Catania.
select NomeArticolo, dataArticolo from (select expand(in('pubblicatoIn')) from citta where nomeCitta = "Catania")
----+------+-------------------+-------------------
# |@CLASS|NomeArticolo |dataArticolo
----+------+-------------------+-------------------
0 |null |Onde Gravitazionali|2016-02-01 00:00:00
1 |null |Super Magnete |2015-03-05 00:00:00
----+------+-------------------+-------------------
2) Le citta che hanno pubblicato almeno due articoli. Cities that have published at least two articles
select nomeCitta from citta where in('pubblicatoIn').size() > 1
----+------+---------
# |@CLASS|nomeCitta
----+------+---------
0 |null |Catania
1 |null |Milano
----+------+---------
3) articoli pubblicati che sono inerenti alla 'fusione'. published that are inherent to the 'fusion'
select NomeArticolo from ArticoloScentifico where NomeArticolo lucene 'fusione*'
----+------+----------------
# |@CLASS|NomeArticolo
----+------+----------------
0 |null |Fusione a freddo
----+------+----------------
Vedo che il tuo DB è strutturato in maniera divera :)
I see your DB is structured differently.
Cosa intendi con "componenti fortemente connesse"??
What do you mean "strongly connected components" ??
3) articoli pubblicati da milano che sono inerenti alla 'fusione'. published by milano that are inherent to the 'fusion'
Ok, (scusa ho letto velocemente e al posto di 'cita' o inteso 'citta').
Quindi nel tuo caso, vorresti trovare tutti i vertici "fortemente connessi" , senza la dipendenza della direzione (grafo non orientato), per cui otterresti come risultato tutti gli articoli presenti nell'immagine che hai pubblicato. corretto?
Ok, (sorry I read it quickly and instead of 'city' or intended 'city').
SELECT nome, in().size("cites") AS numeroCitazioni FROM Articoli UNWIND numeroCitazioni
select from (Select nome, in("cites").size() as numerocitazioni from Articolo) where numerocitazioni in (SELECT max(in("cites").size()) FROM Articolo)