capisco, tieni presente che se fatto in java le API sarebbero poche (
connessione, salvarsi i vertici per esempio in un lista classica) e poi
tutto il resto sono operazioni che implementano l'algoritmo.
Altrimenti una soluzione potrebbe essere fare una funzione in Javascript.
Questo se vuoi ottenere sia il cfc oppure il fc (dato che potrebbero in
generale esserci nodi separati dal grafo).
I understand, please note that if done in Java APIs would be few
(connection, save the vertices as in a classic list) and then all the rest
are operations that implement the algorithm.
If not, a solution could be to make a function in Javascript.
That if you want to get both the CFC or the FC (since it may generally be
separated from the graph nodes for a generic db).
Con il solo utilizzo della query potresti ottenedere una cosa del genere
(scan di tutti i nodi connessi (sia in IN che in OUT) ad un nodo di
partenza) pero non so quanto possa esserti utilie...
traverse both("cites") from (select from Articoli where nome = "A256")
----+-----+--------+-----+--------+---------
# |@RID |@CLASS |nome |in_cites|out_cites
----+-----+--------+-----+--------+---------
0 |#16:0|Articoli|A256 |[size=1]|null
1 |#16:1|Articoli|A1822|[size=1]|[size=1]
2 |#16:2|Articoli|17512|null |[size=2]
3 |#16:4|Articoli|1052 |[size=1]|[size=2]
4 |#16:5|Articoli|323 |[size=1]|null
5 |#16:3|Articoli|7753 |[size=1]|null
----+-----+--------+-----+--------+---------
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.