lib/expr/Makefile
lib/expr/libexpr.pc
lib/common/Makefile
- lib/common_cgraph/Makefile
lib/ingraphs/Makefile
lib/vpsc/Makefile
lib/gvc/Makefile
# $Id$ $Revision$
## Process this file with automake to produce Makefile.in
-GRAPH_DIRS = circogen common dotgen fdpgen neatogen twopigen
+GRAPH_DIRS = circogen dotgen fdpgen neatogen twopigen
-CGRAPH_DIRS = circogen_cgraph common_cgraph dotgen_cgraph \
+CGRAPH_DIRS = circogen_cgraph dotgen_cgraph \
fdpgen_cgraph neatogen_cgraph twopigen_cgraph
SUBDIRS = cdt graph cgraph gd pathplan sfio vmalloc ast vpsc \
- rbtree sparse sfdpgen patchwork inkpot expr pack gvc \
- xdot ingraphs topfish glcomp $(GRAPH_DIRS) $(CGRAPH_DIRS)
+ rbtree sparse sfdpgen patchwork inkpot expr common \
+ pack gvc xdot ingraphs topfish glcomp $(GRAPH_DIRS) $(CGRAPH_DIRS)
EXTRA_DIST = Makefile.old
arrowdir_t *arrowdir;
*sflag = ARR_TYPE_NONE;
+#ifdef WITH_CGRAPH
+ *eflag = agisdirected(agraphof(e)) ? ARR_TYPE_NORM : ARR_TYPE_NONE;
+#else
*eflag = AG_IS_DIRECTED(e->tail->graph) ? ARR_TYPE_NORM : ARR_TYPE_NONE;
+#endif
if (E_dir && ((attr = agxget(e, E_dir->index)))[0]) {
for (arrowdir = Arrowdirs; arrowdir->dir; arrowdir++) {
if (streq(attr, arrowdir->dir)) {
edge_t *f;
int s0, e0;
/* pick up arrowhead of opposing edge */
+#ifdef WITH_CGRAPH
+ f = agedge(agraphof(e), aghead(e), agtail(e), (char *)NULL, FALSE);
+#else
f = agfindedge(e->tail->graph, e->head, e->tail);
+#endif
arrow_flags(f, &s0, &e0);
*eflag = *eflag | s0;
*sflag = *sflag | e0;
|| (strcmp(shape_t, "circle") == 0)
|| (strcmp(shape_t, "doublecircle") == 0)) {
cp_h = diaptf(ND_coord(head));
+#ifdef WITH_CGRAPH
+ if (agisdirected(Rootgraph))
+#else
if (AG_IS_DIRECTED(Rootgraph))
+#endif
+
conn_h = ellipse_connection(cp_h, diapt(A[n - 1]));
else
conn_h = ellipse_connection(cp_h, diapt(A[0]));
} else if (strcmp(shape_t, "record") == 0) {
} else {
+#ifdef WITH_CGRAPH
+ if (agisdirected(Rootgraph))
+#else
if (AG_IS_DIRECTED(Rootgraph))
+#endif
conn_h = box_connection(head, diapt(A[n - 1]));
else
conn_h = box_connection(head, diapt(A[0]));
|| (strcmp(shape_t, "circle") == 0)
|| (strcmp(shape_t, "doublecircle") == 0)) {
cp_t = diaptf(ND_coord(tail));
+#ifdef WITH_CGRAPH
+ if (agisdirected(Rootgraph))
+#else
if (AG_IS_DIRECTED(Rootgraph))
+#endif
conn_t = ellipse_connection(cp_t, diapt(A[0]));
else
conn_t = ellipse_connection(cp_t, diapt(A[n - 1]));
} else if (strcmp(shape_t, "record") == 0) {
} else {
+#ifdef WITH_CGRAPH
+ if (agisdirected(Rootgraph))
+#else
if (AG_IS_DIRECTED(Rootgraph))
+#endif
conn_t = box_connection(tail, diapt(A[0]));
else
conn_t = box_connection(tail, diapt(A[n - 1]));
s = malloc(strlen(e->tail->name) + 2 + strlen(e->head->name) + 1);
strcpy(s,e->tail->name);
+#ifdef WITH_CGRAPH
+ if (agisdirected(agraphof(e)))
+#else
if (AG_IS_DIRECTED(e->tail->graph))
+#endif
+
strcat(s,"->");
else
strcat(s,"--");
ep = (Agedge_t *) obj;
agxbput(xb, ep->tail->name);
agxbput(xb, ep->head->name);
+#ifdef WITH_CGRAPH
+ if (agisdirected(agraphof(ep)))
+#else
if (AG_IS_DIRECTED(ep->tail->graph))
+#endif
agxbput(xb, "->");
else
agxbput(xb, "--");
agerr(AGPREV, "in label of node %s\n", n->name);
break;
case AGEDGE:
+#ifdef WITH_CGRAPH
+ agerr(AGPREV, "in label of edge %s %s %s\n",
+ e->tail->name, agisdirected(g)?"->":"--", e->head->name);
+#else
agerr(AGPREV, "in label of edge %s %s %s\n",
e->tail->name, AG_IS_DIRECTED(g)?"->":"--", e->head->name);
+#endif
break;
}
}
typedef int (*qsort_cmpf) (const void *, const void *);
typedef int (*bsearch_cmpf) (const void *, const void *);
- typedef struct Agraph_t graph_t;
+ typedef struct Agraph_s graph_t;
- typedef struct Agnode_t node_t;
- typedef struct Agedge_t edge_t;
+ typedef struct Agnode_s node_t;
+ typedef struct Agedge_s edge_t;
- typedef struct Agsym_t attrsym_t;
+ typedef struct Agsym_s attrsym_t;
- typedef struct htmllabel_t htmllabel_t;
+ typedef struct htmllabel_s htmllabel_t;
- typedef union inside_t {
+ typedef union inside_s {
struct {
pointf* p;
double* r;
if WITH_CGRAPH
GRAPH = cgraph
-COMMON = common_cgraph
else
GRAPH = graph
-COMMON = common
endif
pdfdir = $(pkgdatadir)/doc/pdf
AM_CPPFLAGS = \
-I$(top_srcdir) \
- -I$(top_srcdir)/lib/$(COMMON) \
+ -I$(top_srcdir)/lib/common \
-I$(top_srcdir)/lib/pathplan \
-I$(top_srcdir)/lib/$(GRAPH) \
-I$(top_srcdir)/lib/cdt \
libgvc_C_la_SOURCES = gvrender.c gvlayout.c gvdevice.c gvloadimage.c \
gvcontext.c gvjobs.c gvevent.c gvplugin.c gvconfig.c \
gvtextlayout.c gvusershape.c gvc.c
-libgvc_C_la_LIBADD = $(top_builddir)/lib/$(COMMON)/libcommon_C.la \
+libgvc_C_la_LIBADD = $(top_builddir)/lib/common/libcommon_C.la \
$(top_builddir)/lib/pack/libpack_C.la
libgvc_C_la_DEPENDENCIES = $(top_builddir)/lib/rbtree/librbtree_C.la \
$(top_builddir)/lib/pack/libpack_C.la
if WITH_CGRAPH
GRAPH = cgraph
-COMMON = common_cgraph
NEATOGEN = neatogen_cgraph
else
GRAPH = graph
-COMMON = common
NEATOGEN = neatogen
endif
AM_CPPFLAGS = -I$(top_srcdir) \
- -I$(top_srcdir)/lib/$(COMMON) \
+ -I$(top_srcdir)/lib/common \
-I$(top_srcdir)/lib/gvc \
-I$(top_srcdir)/lib/$(NEATOGEN) \
-I$(top_srcdir)/lib/pathplan \
if WITH_CGRAPH
GRAPH = cgraph
-COMMON = common_cgraph
NEATOGEN = neatogen_cgraph
FDPGEN = fdpgen_cgraph
else
GRAPH = graph
-COMMON = common
NEATOGEN = neatogen
FDPGEN = fdpgen
endif
AM_CPPFLAGS = \
-I$(top_srcdir) \
- -I$(top_srcdir)/lib/$(COMMON) \
+ -I$(top_srcdir)/lib/common \
-I$(top_srcdir)/lib/gvc \
-I$(top_srcdir)/lib/$(NEATOGEN) \
-I$(top_srcdir)/lib/$(FDPGEN) \