36 #ifndef __vtkMutableUndirectedGraph_h
37 #define __vtkMutableUndirectedGraph_h
39 #include "vtkCommonDataModelModule.h"
42 class vtkEdgeListIterator;
50 void PrintSelf(ostream& os, vtkIndent indent);
61 virtual vtkIdType SetNumberOfVertices( vtkIdType numVerts );
69 vtkIdType AddVertex();
84 vtkIdType AddVertex(vtkVariantArray *propertyArr);
96 vtkIdType AddVertex(
const vtkVariant& pedigreeId);
114 vtkVariantArray *propertyArr);
125 vtkEdgeType AddEdge(
const vtkVariant& u, vtkIdType v,
126 vtkVariantArray *propertyArr = 0);
137 vtkEdgeType AddEdge(vtkIdType u,
const vtkVariant& v,
138 vtkVariantArray *propertyArr = 0);
150 vtkVariantArray *propertyArr = 0);
158 void LazyAddVertex();
168 void LazyAddVertex(vtkVariantArray *propertyArr);
175 void LazyAddVertex(
const vtkVariant& pedigreeId);
181 void LazyAddEdge(vtkIdType u, vtkIdType v);
189 void LazyAddEdge(vtkIdType u, vtkIdType v, vtkVariantArray *propertyArr);
199 void LazyAddEdge(
const vtkVariant& u, vtkIdType v,
200 vtkVariantArray *propertyArr = 0);
211 void LazyAddEdge(vtkIdType u,
const vtkVariant& v,
212 vtkVariantArray *propertyArr = 0);
222 void LazyAddEdge(
const vtkVariant& u,
224 vtkVariantArray *propertyArr = 0);
237 void RemoveVertex(vtkIdType v);
241 void RemoveEdge(vtkIdType e);
245 void RemoveVertices(vtkIdTypeArray* arr);
248 void RemoveEdges(vtkIdTypeArray* arr);
Representation of a single graph edge.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkUndirectedGraph * New()
An editable undirected graph.