|
Graphviz
2.31.20130618.0446
|
00001 /* $Id$ $Revision$ */ 00002 /* vim:set shiftwidth=4 ts=8: */ 00003 00004 /************************************************************************* 00005 * Copyright (c) 2011 AT&T Intellectual Property 00006 * All rights reserved. This program and the accompanying materials 00007 * are made available under the terms of the Eclipse Public License v1.0 00008 * which accompanies this distribution, and is available at 00009 * http://www.eclipse.org/legal/epl-v10.html 00010 * 00011 * Contributors: See CVS logs. Details at http://www.graphviz.org/ 00012 *************************************************************************/ 00013 00014 #include <stdio.h> 00015 #include <vis.h> 00016 typedef Ppoint_t point; 00017 00018 00019 void printvis(vconfig_t * cp) 00020 { 00021 int i, j; 00022 int *next, *prev; 00023 point *pts; 00024 array2 arr; 00025 00026 next = cp->next; 00027 prev = cp->prev; 00028 pts = cp->P; 00029 arr = cp->vis; 00030 00031 printf("this next prev point\n"); 00032 for (i = 0; i < cp->N; i++) 00033 printf("%3d %3d %3d (%f,%f)\n", i, next[i], prev[i], 00034 (double) pts[i].x, (double) pts[i].y); 00035 00036 printf("\n\n"); 00037 00038 for (i = 0; i < cp->N; i++) { 00039 for (j = 0; j < cp->N; j++) 00040 printf("%4.1f ", arr[i][j]); 00041 printf("\n"); 00042 } 00043 }
1.7.5