40 #ifndef __vtkMutableDirectedGraph_h
41 #define __vtkMutableDirectedGraph_h
43 #include "vtkCommonDataModelModule.h"
46 class vtkEdgeListIterator;
55 void PrintSelf(ostream& os, vtkIndent indent);
65 virtual vtkIdType SetNumberOfVertices( vtkIdType numVerts );
73 vtkIdType AddVertex();
88 vtkIdType AddVertex(vtkVariantArray *propertyArr);
100 vtkIdType AddVertex(
const vtkVariant& pedigreeId);
122 vtkVariantArray *propertyArr);
135 vtkEdgeType AddEdge(
const vtkVariant& u, vtkIdType v,
136 vtkVariantArray *propertyArr = 0);
147 vtkEdgeType AddEdge(vtkIdType u,
const vtkVariant& v,
148 vtkVariantArray *propertyArr = 0);
160 vtkVariantArray *propertyArr = 0);
167 void LazyAddVertex();
177 void LazyAddVertex(vtkVariantArray *propertyArr);
184 void LazyAddVertex(
const vtkVariant& pedigreeId);
192 void LazyAddEdge(vtkIdType u, vtkIdType v, vtkVariantArray *propertyArr = 0);
202 void LazyAddEdge(
const vtkVariant& u, vtkIdType v,
203 vtkVariantArray *propertyArr = 0);
213 void LazyAddEdge(vtkIdType u,
const vtkVariant& v,
214 vtkVariantArray *propertyArr = 0);
224 void LazyAddEdge(
const vtkVariant& u,
226 vtkVariantArray *propertyArr = 0);
243 vtkIdType AddChild(vtkIdType parent,
244 vtkVariantArray *propertyArr);
246 {
return this->AddChild(parent, 0); }
252 void RemoveVertex(vtkIdType v);
256 void RemoveEdge(vtkIdType e);
260 void RemoveVertices(vtkIdTypeArray* arr);
263 void RemoveEdges(vtkIdTypeArray* arr);
void PrintSelf(ostream &os, vtkIndent indent)
Representation of a single graph edge.
An editable directed graph.
vtkIdType AddChild(vtkIdType parent)
static vtkDirectedGraph * New()