VTK
|
Produces a layout for a graph labeled with K-Core information. More...
#include <vtkKCoreLayout.h>
Inherits vtkGraphAlgorithm.
Public Types | |
typedef vtkGraphAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkKCoreLayout * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | SetGraphConnection (vtkAlgorithmOutput *) |
Convenience function provided for setting the graph input. More... | |
vtkKCoreLayout () | |
~vtkKCoreLayout () | |
int | FillInputPortInformation (int port, vtkInformation *info) |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
virtual void | SetKCoreLabelArrayName (const char *) |
virtual bool | GetPolar () |
virtual void | SetPolar (bool) |
virtual void | PolarOn () |
virtual void | PolarOff () |
virtual bool | GetCartesian () |
virtual void | SetCartesian (bool) |
virtual void | CartesianOn () |
virtual void | CartesianOff () |
virtual void | SetPolarCoordsRadiusArrayName (const char *) |
virtual char * | GetPolarCoordsRadiusArrayName () |
virtual void | SetPolarCoordsAngleArrayName (const char *) |
virtual char * | GetPolarCoordsAngleArrayName () |
virtual void | SetCartesianCoordsXArrayName (const char *) |
virtual char * | GetCartesianCoordsXArrayName () |
virtual void | SetCartesianCoordsYArrayName (const char *) |
virtual char * | GetCartesianCoordsYArrayName () |
virtual void | SetEpsilon (float) |
virtual float | GetEpsilon () |
virtual void | SetUnitRadius (float) |
virtual float | GetUnitRadius () |
Static Public Member Functions | |
static vtkKCoreLayout * | New () |
static int | IsTypeOf (const char *type) |
static vtkKCoreLayout * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
Protected Attributes | |
char * | KCoreLabelArrayName |
char * | PolarCoordsRadiusArrayName |
char * | PolarCoordsAngleArrayName |
char * | CartesianCoordsXArrayName |
char * | CartesianCoordsYArrayName |
bool | Cartesian |
bool | Polar |
float | Epsilon |
float | UnitRadius |
Produces a layout for a graph labeled with K-Core information.
vtkKCoreLayout creates coordinates for each vertex that can be used to perform a layout for a k-core view. Prerequisite: Vertices must have an attribute array containing their k-core number. This layout is based on the algorithm described in the paper: "k-core decomposition: a tool for the visualization of large scale networks", by Ignacio Alvarez-Hamelin et. al.
This graph algorithm appends either polar coordinates or cartesian coordinates as vertex attributes to the graph giving the position of the vertex in a layout. Input graphs must have the k-core number assigned to each vertex (default attribute array storing kcore numbers is "kcore").
Epsilon - this factor is used to adjust the amount vertices are 'pulled' out of their default ring radius based on the number of neighbors in higher cores. Default=0.2 UnitRadius - Tweaks the base unit radius value. Default=1.0
Still TODO: Still need to work on the connected-components within each shell and associated layout issues with that.
Input port 0: graph
Definition at line 64 of file vtkKCoreLayout.h.
typedef vtkGraphAlgorithm vtkKCoreLayout::Superclass |
Definition at line 68 of file vtkKCoreLayout.h.
vtkKCoreLayout::vtkKCoreLayout | ( | ) |
vtkKCoreLayout::~vtkKCoreLayout | ( | ) |
|
static |
|
static |
|
virtual |
|
static |
|
protectedvirtual |
vtkKCoreLayout* vtkKCoreLayout::NewInstance | ( | ) | const |
void vtkKCoreLayout::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
void vtkKCoreLayout::SetGraphConnection | ( | vtkAlgorithmOutput * | ) |
Convenience function provided for setting the graph input.
int vtkKCoreLayout::FillInputPortInformation | ( | int | port, |
vtkInformation * | info | ||
) |
|
virtual |
Set the name of the vertex attribute array storing k-core labels. Default: kcore
|
virtual |
Output polar coordinates for vertices if True. Default column names are coord_radius, coord_angle. Default: False
|
virtual |
Output polar coordinates for vertices if True. Default column names are coord_radius, coord_angle. Default: False
|
virtual |
Output polar coordinates for vertices if True. Default column names are coord_radius, coord_angle. Default: False
|
virtual |
Output polar coordinates for vertices if True. Default column names are coord_radius, coord_angle. Default: False
|
virtual |
Set whether or not to convert output to cartesian coordinates. If false, coordinates will be returned in polar coordinates (radius, angle). Default: True
|
virtual |
Set whether or not to convert output to cartesian coordinates. If false, coordinates will be returned in polar coordinates (radius, angle). Default: True
|
virtual |
Set whether or not to convert output to cartesian coordinates. If false, coordinates will be returned in polar coordinates (radius, angle). Default: True
|
virtual |
Set whether or not to convert output to cartesian coordinates. If false, coordinates will be returned in polar coordinates (radius, angle). Default: True
|
virtual |
Polar coordinates array name for radius values. This is only used if OutputCartesianCoordinates is False. Default: coord_radius
|
virtual |
Polar coordinates array name for radius values. This is only used if OutputCartesianCoordinates is False. Default: coord_radius
|
virtual |
Polar coordinates array name for angle values in radians. This is only used if OutputCartesianCoordinates is False. Default: coord_angle
|
virtual |
Polar coordinates array name for angle values in radians. This is only used if OutputCartesianCoordinates is False. Default: coord_angle
|
virtual |
Cartesian coordinates array name for the X coordinates. This is only used if OutputCartesianCoordinates is True. Default: coord_x
|
virtual |
Cartesian coordinates array name for the X coordinates. This is only used if OutputCartesianCoordinates is True. Default: coord_x
|
virtual |
Cartesian coordinates array name for the Y coordinates. This is only used if OutputCartesianCoordinates is True. Default: coord_y
|
virtual |
Cartesian coordinates array name for the Y coordinates. This is only used if OutputCartesianCoordinates is True. Default: coord_y
|
virtual |
Epsilon value used in the algorithm. Default = 0.2
|
virtual |
Epsilon value used in the algorithm. Default = 0.2
|
virtual |
Unit Radius value used in the algorithm. Default = 1.0
|
virtual |
Unit Radius value used in the algorithm. Default = 1.0
int vtkKCoreLayout::RequestData | ( | vtkInformation * | , |
vtkInformationVector ** | , | ||
vtkInformationVector * | |||
) |
|
protected |
Definition at line 147 of file vtkKCoreLayout.h.
|
protected |
Definition at line 149 of file vtkKCoreLayout.h.
|
protected |
Definition at line 150 of file vtkKCoreLayout.h.
|
protected |
Definition at line 152 of file vtkKCoreLayout.h.
|
protected |
Definition at line 153 of file vtkKCoreLayout.h.
|
protected |
Definition at line 155 of file vtkKCoreLayout.h.
|
protected |
Definition at line 156 of file vtkKCoreLayout.h.
|
protected |
Definition at line 158 of file vtkKCoreLayout.h.
|
protected |
Definition at line 159 of file vtkKCoreLayout.h.