VTK
|
An undirected graph. More...
#include <vtkUndirectedGraph.h>
An undirected graph.
vtkUndirectedGraph is a collection of vertices along with a collection of undirected edges (they connect two vertices in no particular order). ShallowCopy(), DeepCopy(), CheckedShallowCopy(), CheckedDeepCopy() accept instances of vtkUndirectedGraph and vtkMutableUndirectedGraph. GetOutEdges(v, it) and GetInEdges(v, it) return the same list of edges, which is the list of all edges which have a v as an endpoint. GetInDegree(v), GetOutDegree(v) and GetDegree(v) all return the full degree of vertex v.
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().
Definition at line 53 of file vtkUndirectedGraph.h.
Reimplemented from vtkGraph.
Reimplemented in vtkMolecule, and vtkMutableUndirectedGraph.
Definition at line 57 of file vtkUndirectedGraph.h.
vtkUndirectedGraph::vtkUndirectedGraph | ( | ) | [protected] |
vtkUndirectedGraph::~vtkUndirectedGraph | ( | ) | [protected] |
static vtkUndirectedGraph* vtkUndirectedGraph::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkDataObject.
Reimplemented in vtkMolecule, and vtkMutableUndirectedGraph.
static int vtkUndirectedGraph::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkGraph.
Reimplemented in vtkMolecule, and vtkMutableUndirectedGraph.
virtual int vtkUndirectedGraph::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkGraph.
Reimplemented in vtkMolecule, and vtkMutableUndirectedGraph.
static vtkUndirectedGraph* vtkUndirectedGraph::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkGraph.
Reimplemented in vtkMolecule, and vtkMutableUndirectedGraph.
virtual vtkObjectBase* vtkUndirectedGraph::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkGraph.
Reimplemented in vtkMolecule, and vtkMutableUndirectedGraph.
Reimplemented from vtkGraph.
Reimplemented in vtkMolecule, and vtkMutableUndirectedGraph.
void vtkUndirectedGraph::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkGraph.
Reimplemented in vtkMolecule, and vtkMutableUndirectedGraph.
virtual int vtkUndirectedGraph::GetDataObjectType | ( | ) | [inline, virtual] |
Return what type of dataset this is.
Reimplemented from vtkGraph.
Reimplemented in vtkMolecule.
Definition at line 61 of file vtkUndirectedGraph.h.
virtual vtkIdType vtkUndirectedGraph::GetInDegree | ( | vtkIdType | v | ) | [virtual] |
Returns the full degree of the vertex.
Reimplemented from vtkGraph.
virtual vtkInEdgeType vtkUndirectedGraph::GetInEdge | ( | vtkIdType | v, |
vtkIdType | i | ||
) | [virtual] |
Random-access method for retrieving the in edges of a vertex. For an undirected graph, this is the same as the out edges.
Reimplemented from vtkGraph.
virtual void vtkUndirectedGraph::GetInEdge | ( | vtkIdType | v, |
vtkIdType | i, | ||
vtkGraphEdge * | e | ||
) | [inline, virtual] |
Random-access method for retrieving incoming edges to vertex v. The method fills the vtkGraphEdge instance with the id, source, and target of the edge. This method is provided for wrappers, GetInEdge(vtkIdType, vtkIdType) is preferred.
Reimplemented from vtkGraph.
Definition at line 79 of file vtkUndirectedGraph.h.
static vtkUndirectedGraph* vtkUndirectedGraph::GetData | ( | vtkInformation * | info | ) | [static] |
Retrieve a graph from an information vector.
Reimplemented from vtkGraph.
static vtkUndirectedGraph* vtkUndirectedGraph::GetData | ( | vtkInformationVector * | v, |
int | i = 0 |
||
) | [static] |
Retrieve a graph from an information vector.
Reimplemented from vtkGraph.
virtual void vtkUndirectedGraph::GetInEdges | ( | vtkIdType | v, |
vtkInEdgeIterator * | it | ||
) | [inline, virtual] |
Initialize the iterator to get the incoming edges to a vertex. For an undirected graph, this is all incident edges.
Reimplemented from vtkGraph.
Definition at line 94 of file vtkUndirectedGraph.h.
virtual bool vtkUndirectedGraph::IsStructureValid | ( | vtkGraph * | g | ) | [virtual] |
Check the structure, and accept it if it is a valid undirected graph. This is public to allow the ToDirected/UndirectedGraph to work.
Implements vtkGraph.
virtual void vtkUndirectedGraph::GetInEdges | ( | vtkIdType | v, |
const vtkInEdgeType *& | edges, | ||
vtkIdType & | nedges | ||
) | [protected, virtual] |
For iterators, returns the same edge list as GetOutEdges().
Reimplemented from vtkGraph.