33 #ifndef __vtkMutableGraphHelper_h
34 #define __vtkMutableGraphHelper_h
36 #include "vtkInfovisCoreModule.h"
37 #include "vtkObject.h"
40 class vtkDataSetAttributes;
43 class vtkMutableDirectedGraph;
44 class vtkMutableUndirectedGraph;
51 void PrintSelf(ostream& os, vtkIndent indent);
57 void SetGraph(vtkGraph* g);
64 vtkEdgeType AddEdge(vtkIdType u, vtkIdType v);
66 vtkGraphEdge* AddGraphEdge(vtkIdType u, vtkIdType v);
70 vtkIdType AddVertex();
73 void RemoveVertex(vtkIdType v);
76 void RemoveVertices(vtkIdTypeArray* verts);
79 void RemoveEdge(vtkIdType e);
82 void RemoveEdges(vtkIdTypeArray*
edges);
88 vtkGetObjectMacro(InternalGraph, vtkGraph);
89 void SetInternalGraph(vtkGraph* g);
vtksys_stl::pair< boost::graph_traits< vtkGraph * >::edge_iterator, boost::graph_traits< vtkGraph * >::edge_iterator > edges(vtkGraph *g)
Helper class for building a directed or directed graph.
vtkMutableDirectedGraph * DirectedGraph
vtkMutableUndirectedGraph * UndirectedGraph