/misc/src/release/graphviz-2.18-1/src/graphviz-2.18/lib/neatogen/printvis.c

Go to the documentation of this file.
00001 /* $Id: printvis.c,v 1.1.1.1 2004/12/23 04:05:16 ellson Exp $ $Revision: 1.1.1.1 $ */
00002 /* vim:set shiftwidth=4 ts=8: */
00003 
00004 /**********************************************************
00005 *      This software is part of the graphviz package      *
00006 *                http://www.graphviz.org/                 *
00007 *                                                         *
00008 *            Copyright (c) 1994-2004 AT&T Corp.           *
00009 *                and is licensed under the                *
00010 *            Common Public License, Version 1.0           *
00011 *                      by AT&T Corp.                      *
00012 *                                                         *
00013 *        Information and Software Systems Research        *
00014 *              AT&T Research, Florham Park NJ             *
00015 **********************************************************/
00016 
00017 #include <stdio.h>
00018 #include <vis.h>
00019 typedef Ppoint_t point;
00020 
00021 
00022 void printvis(vconfig_t * cp)
00023 {
00024     int i, j;
00025     int *next, *prev;
00026     point *pts;
00027     array2 arr;
00028 
00029     next = cp->next;
00030     prev = cp->prev;
00031     pts = cp->P;
00032     arr = cp->vis;
00033 
00034     printf("this next prev point\n");
00035     for (i = 0; i < cp->N; i++)
00036         printf("%3d  %3d  %3d    (%f,%f)\n", i, next[i], prev[i],
00037                (double) pts[i].x, (double) pts[i].y);
00038 
00039     printf("\n\n");
00040 
00041     for (i = 0; i < cp->N; i++) {
00042         for (j = 0; j < cp->N; j++)
00043             printf("%4.1f ", arr[i][j]);
00044         printf("\n");
00045     }
00046 }

Generated on Mon Mar 31 19:03:27 2008 for Graphviz by  doxygen 1.5.1