/// <note> /// Raises a vertexRemoved event. /// </note> public void RemoveVertex(IVertex vertex) { GraphContract.ValidateRemoveVertex(vertex); var vertexToRemove = vertex; if (vertex is EventVertex) { vertexToRemove = (vertex as EventVertex).Vertex; } var props = vertex.GetProperties(); if (vertexToRemove != null) { BaseGraph.RemoveVertex(vertexToRemove); OnVertexRemoved(vertex, props); } }
public virtual void RemoveVertex(IVertex vertex) { GraphContract.ValidateRemoveVertex(vertex); foreach (var edge in vertex.GetEdges(Direction.Both)) { RemoveEdge(edge); } VertexKeyIndex.RemoveElement(vertex); foreach (var idx in GetIndices().Where(t => t.Type == typeof(IVertex)).Cast <TinkerIndex>()) { idx.RemoveElement(vertex); } IVertex removedVertex; InnerVertices.TryRemove(vertex.Id.ToString(), out removedVertex); }
public void RemoveVertex(IVertex vertex) { GraphContract.ValidateRemoveVertex(vertex); _graph.RemoveVertex(vertex); }
public void RemoveVertex(IVertex vertex) { GraphContract.ValidateRemoveVertex(vertex); BaseGraph.RemoveVertex(((PartitionVertex)vertex).Vertex); }
public void RemoveVertex(IVertex vertex) { GraphContract.ValidateRemoveVertex(vertex); VerifyNativeElement(vertex); _baseGraph.RemoveVertex(((IdVertex)vertex).GetBaseVertex()); }
public void RemoveVertex(IVertex vertex) { GraphContract.ValidateRemoveVertex(vertex); throw new InvalidOperationException(ReadOnlyTokens.MutateErrorMessage); }
public void RemoveVertex(IVertex vertex) { GraphContract.ValidateRemoveVertex(vertex); throw RetrievalNotSupported(); }
public void RemoveVertex(IVertex vertex) { GraphContract.ValidateRemoveVertex(vertex); BaseGraph.RemoveVertex(((WrappedVertex)vertex).Vertex); }