noinst_HEADERS = colortbl.h convert.h mmio.h matrix_market.h \
graph_generator.h gml2gv.h gmlparse.h
bin_PROGRAMS = gc gvcolor gxl2gv acyclic nop ccomps sccmap tred \
- unflatten gvpack dijkstra bcomps mm2gv gvgen gml2gv
+ unflatten gvpack dijkstra bcomps mm2gv gvgen gml2gv gv2gml
man_MANS = gc.1 gvcolor.1 gxl2gv.1 acyclic.1 nop.1 ccomps.1 sccmap.1 \
tred.1 unflatten.1 gvpack.1 dijkstra.1 bcomps.1 mm2gv.1 gvgen.1 gml2gv.1
pdf_DATA = gc.1.pdf gvcolor.1.pdf gxl2gv.1.pdf acyclic.1.pdf \
gml2gv.1.pdf: gml2gv.1
- @GROFF@ -Tps -man gml2gv.1 | @PS2PDF@ - - >gml2gv.1.pdf
+gv2gml_SOURCES = gv2gml.c
+
+gv2gml_LDADD = \
+ $(top_builddir)/lib/ingraphs/libingraphs_C.la \
+ $(top_builddir)/lib/cgraph/libcgraph.la
+
dijkstra_SOURCES = dijkstra.c
dijkstra_LDADD = \
int c;
cmd = argv[0];
-
- while ((c = getopt(argc, argv, ":vno:?")) != -1)
+ opterr = 0;
+ while ((c = getopt(argc, argv, ":vno:")) != -1)
switch (c) {
case 'o':
outFile = openFile(optarg, "w");
{
int c;
- while ((c = getopt(argc, argv, ":o:xstv?")) != -1) {
+ opterr = 0;
+ while ((c = getopt(argc, argv, ":o:xstv")) != -1) {
switch (c) {
case 'o':
outfile = optarg;
{
int c;
- while ((c = getopt(argc, argv, ":zo:xCX:nsv?")) != -1) {
+ opterr = 0;
+ while ((c = getopt(argc, argv, ":zo:xCX:nsv")) != -1) {
switch (c) {
case 'o':
outfile = optarg;
int c;
CmdName = cmdName(argv[0]);
- while ((c = getopt(argc, argv, ":gdo:?")) != -1) {
+ opterr = 0;
+ while ((c = getopt(argc, argv, ":gdo:")) != -1) {
switch (c) {
case 'd':
act = ToGV;
int i, j, c;
CmdName = argv[0];
- while ((c = getopt(argc, argv, ":ap?")) != -1) {
+ opterr = 0;
+ while ((c = getopt(argc, argv, ":ap")) != -1) {
switch (c) {
case 'a':
setall = 1;
{
unsigned int c;
- while ((c = getopt(argc, argv, ":necCaDUrsv?")) != -1) {
+ opterr = 0;
+ while ((c = getopt(argc, argv, ":necCaDUrsv")) != -1) {
switch (c) {
case 'e':
flags |= EDGES;
int c;
CmdName = cmdName(argv[0]);
- while ((c = getopt(argc, argv, ":gdo:?")) != -1) {
+ opterr = 0;
+ while ((c = getopt(argc, argv, ":gdo:")) != -1) {
switch (c) {
case 'o':
outFile = openFile(optarg, "w");
{
int c;
- while ((c = getopt(argc, argv, ":?")) != -1) {
+ opterr = 0;
+ while ((c = getopt(argc, argv, ":")) != -1) {
switch (c) {
case '?':
if (optopt == '?')
return next;
}
-static char *optList = ":c:C:dg:G:h:k:b:o:p:s:S:t:T:Vw:?";
+static char *optList = ":c:C:dg:G:h:k:b:o:p:s:S:t:T:Vw:";
static GraphType init(int argc, char *argv[], opts_t* opts)
{
GraphType graphType = unknown;
cmd = argv[0];
+ opterr = 0;
while ((c = getopt(argc, argv, optList)) != -1) {
switch (c) {
case 'c':
pinfo->doSplines = TRUE; /* Use edges in packing */
pinfo->fixed = 0;
- while ((c = getopt(argc, argv, ":na:gvum:o:G:?")) != -1) {
+ opterr = 0;
+ while ((c = getopt(argc, argv, ":na:gvum:o:G:")) != -1) {
switch (c) {
case 'a':
len = strlen(optarg) + 2;
#include "SparseMatrix.h"
#include "mmio.h"
#include "matrix_market.h"
-#include "render.h"
+#include "memory.h"
+#include "assert.h"
#define MALLOC gmalloc
#define REALLOC grealloc
#define FREE free
int c;
cmd = argv[0];
- while ((c = getopt(argc, argv, ":o:u?")) != -1) {
+ opterr = 0;
+ while ((c = getopt(argc, argv, ":o:u")) != -1) {
switch (c) {
case 'o':
p->outf = openF (optarg, "w");
{
int c;
- while ((c = getopt(argc, argv, ":p?")) != -1) {
+ opterr = 0;
+ while ((c = getopt(argc, argv, ":p")) != -1) {
switch (c) {
case 'p':
chkOnly = 1;
int c;
CmdName = argv[0];
- while ((c = getopt(argc, argv, ":o:sdvS?")) != EOF) {
+ opterr = 0;
+ while ((c = getopt(argc, argv, ":o:sdvS")) != EOF) {
switch (c) {
case 's':
StatsOnly = 1;
int c;
CmdName = argv[0];
- while ((c = getopt(argc, argv, ":?")) != -1) {
+ opterr = 0;
+ while ((c = getopt(argc, argv, ":")) != -1) {
switch (c) {
case '?':
if (optopt == '?')
int c, ival;
cmd = argv[0];
-
- while ((c = getopt(argc, argv, ":fl:c:o:?")) != -1) {
+ opterr = 0;
+ while ((c = getopt(argc, argv, ":fl:c:o:")) != -1) {
switch (c) {
case 'f':
Do_fans = 1;