Section: Visualization Toolkit Filtering Classes
vtkUndirectedGraph is read-only. To create an undirected graph, use an instance of vtkMutableUndirectedGraph, then you may set the structure to a vtkUndirectedGraph using ShallowCopy().
To create an instance of class vtkUndirectedGraph, simply invoke its constructor as follows
obj = vtkUndirectedGraph
obj
is an instance of the vtkUndirectedGraph class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkUndirectedGraph = obj.NewInstance ()
vtkUndirectedGraph = obj.SafeDownCast (vtkObject o)
int = obj.GetDataObjectType ()
- Returns the full degree of the vertex.
vtkIdType = obj.GetInDegree (vtkIdType v)
- Returns the full degree of the vertex.
obj.GetInEdge (vtkIdType v, vtkIdType i, vtkGraphEdge e)
- Initialize the iterator to get the incoming edges to a vertex.
For an undirected graph, this is all incident edges.
obj.GetInEdges (vtkIdType v, vtkInEdgeIterator it)