本文整理了Java中com.tinkerpop.blueprints.Graph.removeVertex()
方法的一些代码示例,展示了Graph.removeVertex()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Graph.removeVertex()
方法的具体详情如下:
包路径:com.tinkerpop.blueprints.Graph
类名称:Graph
方法名:removeVertex
[英]Remove the provided vertex from the graph. Upon removing the vertex, all the edges by which the vertex is connected must be removed as well.
[中]从图形中删除提供的顶点。删除顶点后,也必须删除连接顶点的所有边。
代码示例来源:origin: com.tinkerpop.blueprints/blueprints-graph-jung
public boolean removeVertex(final Vertex vertex) {
this.graph.removeVertex(vertex);
return true;
}
代码示例来源:origin: com.tinkerpop.blueprints/blueprints-core
@Override
public void removeVertex(final Vertex vertex) {
graph.removeVertex(vertex);
}
代码示例来源:origin: com.tinkerpop.blueprints/blueprints-core
public void removeVertex(final Vertex vertex) {
this.baseGraph.removeVertex(((WrappedVertex) vertex).getBaseVertex());
}
代码示例来源:origin: com.tinkerpop.blueprints/blueprints-core
public void removeVertex(final Vertex vertex) {
this.baseGraph.removeVertex(((PartitionVertex) vertex).getBaseVertex());
}
代码示例来源:origin: org.jboss.windup.graph.frames/windup-frames
public void removeVertex(final Vertex vertex) {
config.getConfiguredGraph().removeVertex(vertex);
}
代码示例来源:origin: com.tinkerpop/frames
public void removeVertex(final Vertex vertex) {
config.getConfiguredGraph().removeVertex(vertex);
}
代码示例来源:origin: com.tinkerpop.blueprints/blueprints-core
/**
* Raises a vertexRemoved event.
*/
public void removeVertex(final Vertex vertex) {
Vertex vertexToRemove = vertex;
if (vertex instanceof EventVertex) {
vertexToRemove = ((EventVertex) vertex).getBaseVertex();
}
Map<String, Object> props = ElementHelper.getProperties(vertex);
this.baseGraph.removeVertex(vertexToRemove);
this.onVertexRemoved(vertex, props);
}
内容来源于网络,如有侵权,请联系作者删除!