From 431a713619d30dd7bb6e71bdbce9cef79a60ccca Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Tue, 21 Aug 2012 14:40:22 -0700 Subject: [PATCH] Update. --- Makefile | 8 ++------ graph2.txt | 23 +++++++++++++++++++++++ mtp.cc | 4 ++++ 3 files changed, 29 insertions(+), 6 deletions(-) create mode 100644 graph2.txt diff --git a/Makefile b/Makefile index d7c5225..38d5110 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,7 @@ endif CXXFLAGS = -Wall -I/usr/include/cairo $(OPTIMIZE_FLAG) $(PROFILE_FLAG) $(CXXGLPK) -all: mtp miniksp +all: mtp TAGS: *.cc *.h etags --members -l c++ *.cc *.h @@ -44,14 +44,10 @@ mtp: \ mtp.o $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) -miniksp: \ - miniksp.o - $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) - Makefile.depend: *.h *.cc Makefile $(CC) $(CXXFLAGS) -M *.cc > Makefile.depend clean: - \rm -f mtp miniksp *.o Makefile.depend TAGS + \rm -f mtp *.o Makefile.depend TAGS -include Makefile.depend diff --git a/graph2.txt b/graph2.txt new file mode 100644 index 0000000..ac428e3 --- /dev/null +++ b/graph2.txt @@ -0,0 +1,23 @@ +11 20 +0 10 + + 0 1 -2.0 + 0 2 1.0 + 0 3 -2.0 + 1 4 -1.0 + 1 5 -2.0 + 2 4 1.0 + 2 5 1.0 + 2 6 1.0 + 3 5 1.0 + 3 6 -1.0 + 4 7 -1.0 + 4 8 1.0 + 5 7 1.0 + 5 8 1.0 + 5 9 -2.0 + 6 8 1.0 + 6 9 -1.0 + 7 10 -2.0 + 8 10 1.0 + 9 10 -2.0 diff --git a/mtp.cc b/mtp.cc index 307da22..a9388f6 100644 --- a/mtp.cc +++ b/mtp.cc @@ -18,6 +18,10 @@ // Multi-Tracked Path +// Takes the graph description file as input and produces a dot file. + +// EXAMPLE: ./mtp ./graph2.txt | dot -T pdf -o- | xpdf - + // #define VERBOSE #include -- 2.39.5