Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/oop/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Database 将集群链接到类_Database_Oop_Graph_Orientdb - Fatal编程技术网

Database 将集群链接到类

Database 将集群链接到类,database,oop,graph,orientdb,Database,Oop,Graph,Orientdb,假设我有A作为抽象类,B扩展了A,C扩展了A,现在我将D集群添加到B G cluster到C,现在我想把G cluster链接到B,我该怎么做?在特定簇上创建顶点,例如: Vertex v1 = g.addVertex( "class:B,cluster:D" ); Vertex v2 = g.addVertex( "class:C,cluster:G" ); Edge e = v1.addEdge( "links", v2 ); 看这张照片

假设我有A作为抽象类,B扩展了A,C扩展了A,现在我将D集群添加到B
G cluster到C,现在我想把G cluster链接到B,我该怎么做?

在特定簇上创建顶点,例如:

Vertex v1 = g.addVertex( "class:B,cluster:D" );
Vertex v2 = g.addVertex( "class:C,cluster:G" );
Edge e = v1.addEdge( "links", v2 );
看这张照片