---
name: "EmbedderEmbedGraph.cpp"
section: "3tulip"
platform: "linux"
package: "tulip-doc"
version: "3.1.2-2.3"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/EmbedderEmbedGraph.cpp"
---

# EmbedderEmbedGraph.cpp(3tulip)

## NAME

EmbedderEmbedGraph.cpp -

## SYNOPSIS

`#include <stdlib.h>`\
 `#include <stdio.h>`\
 `#include <time.h>`\
 `#include 'EmbedderDefs.h'`\
 `#include 'EmbedderDijkstra.h'`\
 `#include 'EmbedderBfs.h'`\
 `#include 'EmbedderParameters.h'`\

### Typedefs

typedef **DistType** \* **dist\_ptr**\
 typedef double \* **double\_ptr**\

### Functions

void **embed\_graph** (**vtx\_data** \*graph, int n, int dim, **DistType** \*\*(&coords))\
 void **center\_coordinate** (**DistType** \*\*coords, int n, int dim)\
 void **power\_iteration** (double \*\*square\_mat, int n, int neigs, double \*\*eigs, double \*evals)\
 void **PCA** (**DistType** \*\*coords, int dim, int n, double \*\*(&new\_coords), int new\_dim)\
 void **PCA** (**DistType** \*\*coords, int dim, int n, double \*\*(&new\_coords), int **dim1**, int **dim2**, bool recompute)\

### Variables

unsigned int **high\_dim\_time**\
 unsigned int **center\_time**\
 unsigned int **pca\_matrix\_time**\
 unsigned int **power\_iteration\_time**\
 unsigned int **projection\_time**\

## Typedef Documentation

### typedef DistType\* dist\_ptr Authors: David Auber, Patrick Mary, Morgan Mathiaut from the LaBRI Visualization Team Email : auber@tulip-software.org Last modification : 13/03/2009 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

### typedef double\* double\_ptr

## Function Documentation

### void center\_coordinate (DistType \*\* coords, int n, int dim)

### void embed\_graph (vtx\_data \* graph, int n, int dim, DistType \*\*& coords) Authors: David Auber, Patrick Mary, Morgan Mathiaut from the LaBRI Visualization Team Email : auber@tulip-software.org Last modification : 13/03/2009 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

### void PCA (DistType \*\* coords, int dim, int n, double \*\*& new\_coords, int dim1, int dim2, bool recompute)

### void PCA (DistType \*\* coords, int dim, int n, double \*\*& new\_coords, int new\_dim)

### void power\_iteration (double \*\* square\_mat, int n, int neigs, double \*\* eigs, double \* evals)

## Variable Documentation

### unsigned int center\_time

### unsigned int high\_dim\_time

### unsigned int pca\_matrix\_time

### unsigned int power\_iteration\_time

### unsigned int projection\_time

## Author

Generated automatically by Doxygen for Tulip Plugins Library from the source code.
