Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages

GraphLayout Class Reference

#include <GraphLayout.h>

List of all members.


Public Methods

GraphLayout (int nverts, int nedges)
~GraphLayout ()
void add_edge (int v0, int v1, float weight)
void add_weight_matrix (const float *weight_matrix)
void init_positions_box ()
void init_positions_circle ()
void compute (int iters, float area, float kscale, float tempscale, float distance_epsilon)
void get_vertex_ptrs (int &numverts, const float *&px, const float *&py)

Constructor & Destructor Documentation

GraphLayout::GraphLayout ( int nverts,
int nedges
)

Definition at line 36 of file GraphLayout.C.

References NULL, ResizeArray< int >::set_size, and ResizeArray< float >::set_size.

GraphLayout::~GraphLayout ( )

Definition at line 52 of file GraphLayout.C.

References ResizeArray< int >::clear, and ResizeArray< float >::clear.


Member Function Documentation

void GraphLayout::add_edge ( int v0,
int v1,
float weight
)

Definition at line 64 of file GraphLayout.C.

References ResizeArray< float >::append, ResizeArray< int >::append, ResizeArray< float >::extend, and ResizeArray< float >::num.

void GraphLayout::add_weight_matrix ( const float * weight_matrix )

Definition at line 89 of file GraphLayout.C.

Referenced by layout_fr.

void GraphLayout::compute ( int iters,
float area,
float kscale,
float tempscale,
float distance_epsilon
)

Definition at line 139 of file GraphLayout.C.

References NULL, ResizeArray< int >::num, and ResizeArray< float >::num.

Referenced by layout_fr.

void GraphLayout::get_vertex_ptrs ( int & numverts,
const float *& px,
const float *& py
) [inline]

Definition at line 53 of file GraphLayout.h.

References ResizeArray::num.

Referenced by layout_fr.

void GraphLayout::init_positions_box ( )

Definition at line 95 of file GraphLayout.C.

References ResizeArray< float >::num.

Referenced by layout_fr.

void GraphLayout::init_positions_circle ( )

Definition at line 113 of file GraphLayout.C.

References ResizeArray< float >::num, and VMD_PIF.


The documentation for this class was generated from the following files:
Generated on Mon Nov 17 02:48:43 2025 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002

AltStyle によって変換されたページ (->オリジナル) /