#ifdef __cplusplus
extern "C" {
#endif

#ifndef TLAYOUT_H
#define TLAYOUT_H

#include "fdp.h"
#include "xlayout.h"

typedef struct {
  int        useGrid;  /* use grid for speed up */
  int        useNew;   /* encode x-K into attractive force */
  long       seed;     /* seed for position RNG */
  int        maxIter;  /* actual iterations in layout */
  int        unscaled; /* % of iterations used in pass 1 */
  double     C;        /* Repulsion factor in xLayout */
  double     Tfact;    /* scale temp from default expression */
  double     K;        /* spring constant; ideal distance */
} tParms_t;

extern tParms_t fdp_tvals;

extern void fdp_initParams (graph_t*);
extern void fdp_tLayout (graph_t*, xparams*);

#endif

#ifdef __cplusplus
}
#endif
