21 Jun 2024 |
some.knowit | * I see there are BalloonLayout.lua and CircularLayout.lua. Are these actually in use or are they work in progress? The example code in these files, for instance, involves a CircularLayout :
\tikz \graph [CircularLayout, part sep=1cm] {
a -- b -- c -- a -- d -- e -- f -- g -- d;
b -- {x,y,z};
};
But as far as I understand to use a circular layout, we would do something like the following instead:
\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{circular}
\begin{document}
\tikz \graph [simple necklace layout, part sep=1cm] {
a -- b -- c -- a -- d -- e -- f -- g -- d;
b -- {x,y,z};
};
\end{document}
What am I missing?
| 05:57:13 |
hmenke | In reply to @some.knowit:matrix.org
I see there are BalloonLayout.lua and CircularLayout.lua. Are these actually in use or are they work in progress? The example code in these files, for instance, involves a CircularLayout :
\tikz \graph [CircularLayout, part sep=1cm] {
a -- b -- c -- a -- d -- e -- f -- g -- d;
b -- {x,y,z};
};
But as far as I understand to use a circular layout, we would do something like the following instead:
\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{circular}
\begin{document}
\tikz \graph [simple necklace layout, part sep=1cm] {
a -- b -- c -- a -- d -- e -- f -- g -- d;
b -- {x,y,z};
};
\end{document}
What am I missing?
https://github.com/pgf-tikz/pgf/blob/12f17834c849a659b8829bbc9122bc459f585917/doc/generic/pgf/pgfmanual-en-main-preamble.tex#L109-L133 | 08:29:18 |
hmenke | In reply to @some.knowit:matrix.org
I see there are BalloonLayout.lua and CircularLayout.lua. Are these actually in use or are they work in progress? The example code in these files, for instance, involves a CircularLayout :
\tikz \graph [CircularLayout, part sep=1cm] {
a -- b -- c -- a -- d -- e -- f -- g -- d;
b -- {x,y,z};
};
But as far as I understand to use a circular layout, we would do something like the following instead:
\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{circular}
\begin{document}
\tikz \graph [simple necklace layout, part sep=1cm] {
a -- b -- c -- a -- d -- e -- f -- g -- d;
b -- {x,y,z};
};
\end{document}
What am I missing?
* I'm not sure anyone has ever looked that detailed into graphdrawing. You can check what libraries the documentation loads: https://github.com/pgf-tikz/pgf/blob/12f17834c849a659b8829bbc9122bc459f585917/doc/generic/pgf/pgfmanual-en-main-preamble.tex#L109-L133 | 08:29:55 |
hmenke | Looks to me like you probably need \usegdlibrary{ogdf} . | 08:30:24 |
hmenke | Oh, it looks like this actually needs a compiled C++ module.
https://github.com/pgf-tikz/pgf/blob/12f17834c849a659b8829bbc9122bc459f585917/source/generic/pgf/c/graphdrawing/pgf/gd/ogdf/c/ogdf_script.c%2B%2B | 08:34:26 |
some.knowit | hmenke: do you know the version of ogdf the pgf depends upon? I got the following failure while trying to make under graphdrawing/pgf/gd/ogdf/c on OSX (Apple M2):
g++ -fPIC -std=c++11 -O2 -Wall -I/opt/homebrew/opt/lua@5.3/include/lua -I../../../.. -I/usr/local/ogdf/include -c -o ogdf_script.o ogdf_script.c++
In file included from ogdf_script.c++:5:
In file included from ./layered/layered_script.h:14:
./layered/SiftingHeuristic_script.h:18:32: error: no member named 'left_to_right' in 'ogdf::SiftingHeuristic'
h->strategy(SiftingHeuristic::left_to_right);
~~~~~~~~~~~~~~~~~~^
./layered/SiftingHeuristic_script.h:20:32: error: no member named 'desc_degree' in 'ogdf::SiftingHeuristic'
h->strategy(SiftingHeuristic::desc_degree);
~~~~~~~~~~~~~~~~~~^
./layered/SiftingHeuristic_script.h:22:32: error: no member named 'random' in 'ogdf::SiftingHeuristic'
h->strategy(SiftingHeuristic::random);
~~~~~~~~~~~~~~~~~~^
In file included from ogdf_script.c++:5:
In file included from ./layered/layered_script.h:19:
./layered/FastSimpleHierarchyLayout_script.h:12:40: error: no matching constructor for initialization of 'FastSimpleHierarchyLayout'
FastSimpleHierarchyLayout* r = new FastSimpleHierarchyLayout
^
/usr/local/ogdf/include/ogdf/layered/FastSimpleHierarchyLayout.h:108:2: note: candidate constructor not viable: requires 1 argument, but 2 were provided
FastSimpleHierarchyLayout(const FastSimpleHierarchyLayout&);
^
/usr/local/ogdf/include/ogdf/layered/FastSimpleHierarchyLayout.h:104:2: note: candidate constructor not viable: requires 0 arguments, but 2 were provided
FastSimpleHierarchyLayout();
^
In file included from ogdf_script.c++:6:
In file included from ./energybased/energybased_script.h:3:
./energybased/FMMMLayout_script.h:13:43: error: no member named 'qvsGorgeousAndEfficient' in 'ogdf::FMMMLayout'
layout.qualityVersusSpeed(FMMMLayout::qvsGorgeousAndEfficient);
~~~~~~~~~~~~^
In file included from ogdf_script.c++:6:
In file included from ./energybased/energybased_script.h:7:
./energybased/SpringEmbedderFR_script.h:2:10: fatal error: 'ogdf/energybased/SpringEmbedderFR.h' file not found
#include <ogdf/energybased/SpringEmbedderFR.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 errors generated.
make: *** [ogdf_script.o] Error 1
| 19:08:43 |
some.knowit | * hmenke: do you know the version of ogdf the pgf depends upon? I got the following failure while trying to make under graphdrawing/pgf/gd/ogdf/c on OSX (Apple M2) after building the latest ogdf release bundle and have it installed locally under /usr/loca/ogdf :
g++ -fPIC -std=c++11 -O2 -Wall -I/opt/homebrew/opt/lua@5.3/include/lua -I../../../.. -I/usr/local/ogdf/include -c -o ogdf_script.o ogdf_script.c++
In file included from ogdf_script.c++:5:
In file included from ./layered/layered_script.h:14:
./layered/SiftingHeuristic_script.h:18:32: error: no member named 'left_to_right' in 'ogdf::SiftingHeuristic'
h->strategy(SiftingHeuristic::left_to_right);
~~~~~~~~~~~~~~~~~~^
./layered/SiftingHeuristic_script.h:20:32: error: no member named 'desc_degree' in 'ogdf::SiftingHeuristic'
h->strategy(SiftingHeuristic::desc_degree);
~~~~~~~~~~~~~~~~~~^
./layered/SiftingHeuristic_script.h:22:32: error: no member named 'random' in 'ogdf::SiftingHeuristic'
h->strategy(SiftingHeuristic::random);
~~~~~~~~~~~~~~~~~~^
In file included from ogdf_script.c++:5:
In file included from ./layered/layered_script.h:19:
./layered/FastSimpleHierarchyLayout_script.h:12:40: error: no matching constructor for initialization of 'FastSimpleHierarchyLayout'
FastSimpleHierarchyLayout* r = new FastSimpleHierarchyLayout
^
/usr/local/ogdf/include/ogdf/layered/FastSimpleHierarchyLayout.h:108:2: note: candidate constructor not viable: requires 1 argument, but 2 were provided
FastSimpleHierarchyLayout(const FastSimpleHierarchyLayout&);
^
/usr/local/ogdf/include/ogdf/layered/FastSimpleHierarchyLayout.h:104:2: note: candidate constructor not viable: requires 0 arguments, but 2 were provided
FastSimpleHierarchyLayout();
^
In file included from ogdf_script.c++:6:
In file included from ./energybased/energybased_script.h:3:
./energybased/FMMMLayout_script.h:13:43: error: no member named 'qvsGorgeousAndEfficient' in 'ogdf::FMMMLayout'
layout.qualityVersusSpeed(FMMMLayout::qvsGorgeousAndEfficient);
~~~~~~~~~~~~^
In file included from ogdf_script.c++:6:
In file included from ./energybased/energybased_script.h:7:
./energybased/SpringEmbedderFR_script.h:2:10: fatal error: 'ogdf/energybased/SpringEmbedderFR.h' file not found
#include <ogdf/energybased/SpringEmbedderFR.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 errors generated.
make: *** [ogdf_script.o] Error 1
| 19:10:18 |
some.knowit | * hmenke: do you know the version of ogdf the master branch of pgf depends upon? I got the following failure while trying to make under graphdrawing/pgf/gd/ogdf/c on OSX (Apple M2) after building the latest ogdf release bundle and have it installed locally under /usr/loca/ogdf :
g++ -fPIC -std=c++11 -O2 -Wall -I/opt/homebrew/opt/lua@5.3/include/lua -I../../../.. -I/usr/local/ogdf/include -c -o ogdf_script.o ogdf_script.c++
In file included from ogdf_script.c++:5:
In file included from ./layered/layered_script.h:14:
./layered/SiftingHeuristic_script.h:18:32: error: no member named 'left_to_right' in 'ogdf::SiftingHeuristic'
h->strategy(SiftingHeuristic::left_to_right);
~~~~~~~~~~~~~~~~~~^
./layered/SiftingHeuristic_script.h:20:32: error: no member named 'desc_degree' in 'ogdf::SiftingHeuristic'
h->strategy(SiftingHeuristic::desc_degree);
~~~~~~~~~~~~~~~~~~^
./layered/SiftingHeuristic_script.h:22:32: error: no member named 'random' in 'ogdf::SiftingHeuristic'
h->strategy(SiftingHeuristic::random);
~~~~~~~~~~~~~~~~~~^
In file included from ogdf_script.c++:5:
In file included from ./layered/layered_script.h:19:
./layered/FastSimpleHierarchyLayout_script.h:12:40: error: no matching constructor for initialization of 'FastSimpleHierarchyLayout'
FastSimpleHierarchyLayout* r = new FastSimpleHierarchyLayout
^
/usr/local/ogdf/include/ogdf/layered/FastSimpleHierarchyLayout.h:108:2: note: candidate constructor not viable: requires 1 argument, but 2 were provided
FastSimpleHierarchyLayout(const FastSimpleHierarchyLayout&);
^
/usr/local/ogdf/include/ogdf/layered/FastSimpleHierarchyLayout.h:104:2: note: candidate constructor not viable: requires 0 arguments, but 2 were provided
FastSimpleHierarchyLayout();
^
In file included from ogdf_script.c++:6:
In file included from ./energybased/energybased_script.h:3:
./energybased/FMMMLayout_script.h:13:43: error: no member named 'qvsGorgeousAndEfficient' in 'ogdf::FMMMLayout'
layout.qualityVersusSpeed(FMMMLayout::qvsGorgeousAndEfficient);
~~~~~~~~~~~~^
In file included from ogdf_script.c++:6:
In file included from ./energybased/energybased_script.h:7:
./energybased/SpringEmbedderFR_script.h:2:10: fatal error: 'ogdf/energybased/SpringEmbedderFR.h' file not found
#include <ogdf/energybased/SpringEmbedderFR.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 errors generated.
make: *** [ogdf_script.o] Error 1
| 19:10:48 |
some.knowit | * hmenke: do you know the version of ogdf the master branch of pgf depends upon? I got the following failure while trying to make under graphdrawing/pgf/gd/ogdf/c on OSX (Apple M2) after building the latest ogdf release bundle and have it installed locally under /usr/loca/ogdf :
g++ -fPIC -std=c++11 -O2 -Wall -I/opt/homebrew/opt/lua@5.3/include/lua -I../../../.. -I/usr/local/ogdf/include -c -o ogdf_script.o ogdf_script.c++
In file included from ogdf_script.c++:5:
In file included from ./layered/layered_script.h:14:
./layered/SiftingHeuristic_script.h:18:32: error: no member named 'left_to_right' in 'ogdf::SiftingHeuristic'
h->strategy(SiftingHeuristic::left_to_right);
~~~~~~~~~~~~~~~~~~^
./layered/SiftingHeuristic_script.h:20:32: error: no member named 'desc_degree' in 'ogdf::SiftingHeuristic'
h->strategy(SiftingHeuristic::desc_degree);
~~~~~~~~~~~~~~~~~~^
./layered/SiftingHeuristic_script.h:22:32: error: no member named 'random' in 'ogdf::SiftingHeuristic'
h->strategy(SiftingHeuristic::random);
~~~~~~~~~~~~~~~~~~^
In file included from ogdf_script.c++:5:
In file included from ./layered/layered_script.h:19:
./layered/FastSimpleHierarchyLayout_script.h:12:40: error: no matching constructor for initialization of 'FastSimpleHierarchyLayout'
FastSimpleHierarchyLayout* r = new FastSimpleHierarchyLayout
^
/usr/local/ogdf/include/ogdf/layered/FastSimpleHierarchyLayout.h:108:2: note: candidate constructor not viable: requires 1 argument, but 2 were provided
FastSimpleHierarchyLayout(const FastSimpleHierarchyLayout&);
^
/usr/local/ogdf/include/ogdf/layered/FastSimpleHierarchyLayout.h:104:2: note: candidate constructor not viable: requires 0 arguments, but 2 were provided
FastSimpleHierarchyLayout();
^
In file included from ogdf_script.c++:6:
In file included from ./energybased/energybased_script.h:3:
./energybased/FMMMLayout_script.h:13:43: error: no member named 'qvsGorgeousAndEfficient' in 'ogdf::FMMMLayout'
layout.qualityVersusSpeed(FMMMLayout::qvsGorgeousAndEfficient);
~~~~~~~~~~~~^
In file included from ogdf_script.c++:6:
In file included from ./energybased/energybased_script.h:7:
./energybased/SpringEmbedderFR_script.h:2:10: fatal error: 'ogdf/energybased/SpringEmbedderFR.h' file not found
#include <ogdf/energybased/SpringEmbedderFR.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 errors generated.
make: *** [ogdf_script.o] Error 1
| 19:11:07 |
some.knowit | * hmenke: do you know the version of ogdf the master branch of pgf depends upon? I got the following failure while trying to make under graphdrawing/pgf/gd/ogdf/c on OSX (Apple M2) after building the latest ogdf release bundle and have it installed locally under /usr/loca/ogdf :
g++ -fPIC -std=c++11 -O2 -Wall -I/opt/homebrew/opt/lua@5.3/include/lua -I../../../.. -I/usr/local/ogdf/include -c -o ogdf_script.o ogdf_script.c++
In file included from ogdf_script.c++:5:
In file included from ./layered/layered_script.h:14:
./layered/SiftingHeuristic_script.h:18:32: error: no member named 'left_to_right' in 'ogdf::SiftingHeuristic'
h->strategy(SiftingHeuristic::left_to_right);
~~~~~~~~~~~~~~~~~~^
./layered/SiftingHeuristic_script.h:20:32: error: no member named 'desc_degree' in 'ogdf::SiftingHeuristic'
h->strategy(SiftingHeuristic::desc_degree);
~~~~~~~~~~~~~~~~~~^
./layered/SiftingHeuristic_script.h:22:32: error: no member named 'random' in 'ogdf::SiftingHeuristic'
h->strategy(SiftingHeuristic::random);
~~~~~~~~~~~~~~~~~~^
In file included from ogdf_script.c++:5:
In file included from ./layered/layered_script.h:19:
./layered/FastSimpleHierarchyLayout_script.h:12:40: error: no matching constructor for initialization of 'FastSimpleHierarchyLayout'
FastSimpleHierarchyLayout* r = new FastSimpleHierarchyLayout
^
/usr/local/ogdf/include/ogdf/layered/FastSimpleHierarchyLayout.h:108:2: note: candidate constructor not viable: requires 1 argument, but 2 were provided
FastSimpleHierarchyLayout(const FastSimpleHierarchyLayout&);
^
/usr/local/ogdf/include/ogdf/layered/FastSimpleHierarchyLayout.h:104:2: note: candidate constructor not viable: requires 0 arguments, but 2 were provided
FastSimpleHierarchyLayout();
^
In file included from ogdf_script.c++:6:
In file included from ./energybased/energybased_script.h:3:
./energybased/FMMMLayout_script.h:13:43: error: no member named 'qvsGorgeousAndEfficient' in 'ogdf::FMMMLayout'
layout.qualityVersusSpeed(FMMMLayout::qvsGorgeousAndEfficient);
~~~~~~~~~~~~^
In file included from ogdf_script.c++:6:
In file included from ./energybased/energybased_script.h:7:
./energybased/SpringEmbedderFR_script.h:2:10: fatal error: 'ogdf/energybased/SpringEmbedderFR.h' file not found
#include <ogdf/energybased/SpringEmbedderFR.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 errors generated.
make: *** [ogdf_script.o] Error 1
| 19:11:35 |
some.knowit | * hmenke: do you know the version of ogdf the master branch of pgf depends upon? I got the following failure while trying to run make under graphdrawing/pgf/gd/ogdf/c on OSX (Apple M2) after building the latest ogdf release bundle and have it installed locally under /usr/loca/ogdf :
g++ -fPIC -std=c++11 -O2 -Wall -I/opt/homebrew/opt/lua@5.3/include/lua -I../../../.. -I/usr/local/ogdf/include -c -o ogdf_script.o ogdf_script.c++
In file included from ogdf_script.c++:5:
In file included from ./layered/layered_script.h:14:
./layered/SiftingHeuristic_script.h:18:32: error: no member named 'left_to_right' in 'ogdf::SiftingHeuristic'
h->strategy(SiftingHeuristic::left_to_right);
~~~~~~~~~~~~~~~~~~^
./layered/SiftingHeuristic_script.h:20:32: error: no member named 'desc_degree' in 'ogdf::SiftingHeuristic'
h->strategy(SiftingHeuristic::desc_degree);
~~~~~~~~~~~~~~~~~~^
./layered/SiftingHeuristic_script.h:22:32: error: no member named 'random' in 'ogdf::SiftingHeuristic'
h->strategy(SiftingHeuristic::random);
~~~~~~~~~~~~~~~~~~^
In file included from ogdf_script.c++:5:
In file included from ./layered/layered_script.h:19:
./layered/FastSimpleHierarchyLayout_script.h:12:40: error: no matching constructor for initialization of 'FastSimpleHierarchyLayout'
FastSimpleHierarchyLayout* r = new FastSimpleHierarchyLayout
^
/usr/local/ogdf/include/ogdf/layered/FastSimpleHierarchyLayout.h:108:2: note: candidate constructor not viable: requires 1 argument, but 2 were provided
FastSimpleHierarchyLayout(const FastSimpleHierarchyLayout&);
^
/usr/local/ogdf/include/ogdf/layered/FastSimpleHierarchyLayout.h:104:2: note: candidate constructor not viable: requires 0 arguments, but 2 were provided
FastSimpleHierarchyLayout();
^
In file included from ogdf_script.c++:6:
In file included from ./energybased/energybased_script.h:3:
./energybased/FMMMLayout_script.h:13:43: error: no member named 'qvsGorgeousAndEfficient' in 'ogdf::FMMMLayout'
layout.qualityVersusSpeed(FMMMLayout::qvsGorgeousAndEfficient);
~~~~~~~~~~~~^
In file included from ogdf_script.c++:6:
In file included from ./energybased/energybased_script.h:7:
./energybased/SpringEmbedderFR_script.h:2:10: fatal error: 'ogdf/energybased/SpringEmbedderFR.h' file not found
#include <ogdf/energybased/SpringEmbedderFR.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 errors generated.
make: *** [ogdf_script.o] Error 1
| 19:13:36 |
some.knowit | * hmenke: do you know the version of ogdf the master branch of pgf depends upon? I got the following failure while trying to run make under graphdrawing/pgf/gd/ogdf/c on OSX (Apple M2) after building the latest ogdf release bundle and have it installed locally under /usr/local/ogdf :
g++ -fPIC -std=c++11 -O2 -Wall -I/opt/homebrew/opt/lua@5.3/include/lua -I../../../.. -I/usr/local/ogdf/include -c -o ogdf_script.o ogdf_script.c++
In file included from ogdf_script.c++:5:
In file included from ./layered/layered_script.h:14:
./layered/SiftingHeuristic_script.h:18:32: error: no member named 'left_to_right' in 'ogdf::SiftingHeuristic'
h->strategy(SiftingHeuristic::left_to_right);
~~~~~~~~~~~~~~~~~~^
./layered/SiftingHeuristic_script.h:20:32: error: no member named 'desc_degree' in 'ogdf::SiftingHeuristic'
h->strategy(SiftingHeuristic::desc_degree);
~~~~~~~~~~~~~~~~~~^
./layered/SiftingHeuristic_script.h:22:32: error: no member named 'random' in 'ogdf::SiftingHeuristic'
h->strategy(SiftingHeuristic::random);
~~~~~~~~~~~~~~~~~~^
In file included from ogdf_script.c++:5:
In file included from ./layered/layered_script.h:19:
./layered/FastSimpleHierarchyLayout_script.h:12:40: error: no matching constructor for initialization of 'FastSimpleHierarchyLayout'
FastSimpleHierarchyLayout* r = new FastSimpleHierarchyLayout
^
/usr/local/ogdf/include/ogdf/layered/FastSimpleHierarchyLayout.h:108:2: note: candidate constructor not viable: requires 1 argument, but 2 were provided
FastSimpleHierarchyLayout(const FastSimpleHierarchyLayout&);
^
/usr/local/ogdf/include/ogdf/layered/FastSimpleHierarchyLayout.h:104:2: note: candidate constructor not viable: requires 0 arguments, but 2 were provided
FastSimpleHierarchyLayout();
^
In file included from ogdf_script.c++:6:
In file included from ./energybased/energybased_script.h:3:
./energybased/FMMMLayout_script.h:13:43: error: no member named 'qvsGorgeousAndEfficient' in 'ogdf::FMMMLayout'
layout.qualityVersusSpeed(FMMMLayout::qvsGorgeousAndEfficient);
~~~~~~~~~~~~^
In file included from ogdf_script.c++:6:
In file included from ./energybased/energybased_script.h:7:
./energybased/SpringEmbedderFR_script.h:2:10: fatal error: 'ogdf/energybased/SpringEmbedderFR.h' file not found
#include <ogdf/energybased/SpringEmbedderFR.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 errors generated.
make: *** [ogdf_script.o] Error 1
| 19:14:24 |
some.knowit | Checking the historical releases of ogdf , it seems this left_to_right sifthing heuristic exists in the 201505 release or before, i.e. not after. Will try my luck there. | 20:54:42 |
some.knowit | After building and installing the baobab-201505 version of ogdf , the compilation now fails differently. Will try with the oldest version (201207) of ogdf later on.
$ make
g++ -fPIC -std=c++11 -O2 -Wall -I/opt/homebrew/opt/lua@5.3/include/lua -I../../../.. -I/usr/local/ogdf/include -c -o ogdf_script.o ogdf_script.c++
In file included from ogdf_script.c++:5:
In file included from ./layered/layered_script.h:19:
./layered/FastSimpleHierarchyLayout_script.h:12:40: error: no matching constructor for initialization of 'FastSimpleHierarchyLayout'
FastSimpleHierarchyLayout* r = new FastSimpleHierarchyLayout
| 22:48:42 |
some.knowit | * Checking the historical releases of ogdf , it seems this left_to_right sifting heuristic exists in the 201505 release or before, i.e. not after. Will try my luck there. | 22:49:31 |
22 Jun 2024 |
some.knowit | Yup, with a bunch of fixes,pgf can build against the libOGDF.a of ogdf 's sakura-201207 release:
./graphdrawing/pgf/gd/examples/c/SimpleDemoC.so
./graphdrawing/pgf/gd/examples/c/SimpleDemoCPlusPlus.so
./graphdrawing/pgf/gd/ogdf/c/ogdf_script.so
./graphdrawing/pgf/gd/ogdf/c/SimpleDemoOGDF.so
| 00:52:16 |
some.knowit | * Yup, with a bunch of fixes,pgf can build against the libOGDF.a of ogdf 's sakura-201207 release (on Apple M2):
./graphdrawing/pgf/gd/examples/c/SimpleDemoC.so
./graphdrawing/pgf/gd/examples/c/SimpleDemoCPlusPlus.so
./graphdrawing/pgf/gd/ogdf/c/ogdf_script.so
./graphdrawing/pgf/gd/ogdf/c/SimpleDemoOGDF.so
| 00:54:39 |
some.knowit | * Yup, with a bunch of fixes,pgf can build against the libOGDF.a of ogdf 's sakura-201207 release (on Apple M2):
./graphdrawing/pgf/gd/examples/c/SimpleDemoC.so
./graphdrawing/pgf/gd/examples/c/SimpleDemoCPlusPlus.so
./graphdrawing/pgf/gd/ogdf/c/ogdf_script.so
./graphdrawing/pgf/gd/ogdf/c/SimpleDemoOGDF.so
These are the tweaks I made to the ogdf 's sakura-201207 release to get it to build. These are the tweaks I made to pgf for the build to succeed.
| 01:01:13 |
some.knowit | * Yup, with a bunch of tweaks,pgf can build against the libOGDF.a of ogdf 's sakura-201207 release (on Apple M2):
./graphdrawing/pgf/gd/examples/c/SimpleDemoC.so
./graphdrawing/pgf/gd/examples/c/SimpleDemoCPlusPlus.so
./graphdrawing/pgf/gd/ogdf/c/ogdf_script.so
./graphdrawing/pgf/gd/ogdf/c/SimpleDemoOGDF.so
These are the tweaks I made to the ogdf 's sakura-201207 release to get it to build. These are the tweaks I made to pgf for the build to succeed.
| 01:02:43 |
some.knowit | Good news: the C demo is working as expected:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary {examples.c.SimpleDemoC}
\begin{document}
\tikz \graph [fast simple demo layout, fast simple demo radius=1.25cm]
{ a -> b -> c -> d -> e -> a };
\end{document}
Bad news: the C++ demo is crashing:
(/usr/local/texlive/2024/texmf-dist/tex/latex/base/ts1cmr.fd) (/usr/local/texlive/2024/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/local/texlive/2024/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))...graphdrawing/lua/pgf/gd/interface/InterfaceToDisplay.lua:213: ...c/pgf/graphdrawing/lua/pgf/gd/control/LayoutPipeline.lua:247: attempt to index a nil value (local 'spanning_algorithm_class')
stack traceback:
[C]: in function 'assert'
...graphdrawing/lua/pgf/gd/interface/InterfaceToDisplay.lua:213: in function 'pgf.gd.interface.InterfaceToDisplay.resumeGraphDrawingCoroutine'
...graphdrawing/lua/pgf/gd/interface/InterfaceToDisplay.lua:182: in function 'pgf.gd.interface.InterfaceToDisplay.runGraphDrawingAlgorithm'
[\directlua]:1: in main chunk.
which means for some reason this line in LayoutPipeline.lua has nil assigned to spanning_algorithm_class :
local spanning_algorithm_class = syntactic_component.options.algorithm_phases["spanning tree computation"]
which suggests somehow my C++ build was not done correctly. Since ogdf is built on top of the C++, it's probably won't work either :(
| 05:14:01 |
some.knowit | * Good news: the C demo is working as expected:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary {examples.c.SimpleDemoC}
\begin{document}
\tikz \graph [fast simple demo layout, fast simple demo radius=1.25cm]
{ a -> b -> c -> d -> e -> a };
\end{document}
Bad news: the C++ demo is crashing:
(/usr/local/texlive/2024/texmf-dist/tex/latex/base/ts1cmr.fd) (/usr/local/texlive/2024/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/local/texlive/2024/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))...graphdrawing/lua/pgf/gd/interface/InterfaceToDisplay.lua:213: ...c/pgf/graphdrawing/lua/pgf/gd/control/LayoutPipeline.lua:247: attempt to index a nil value (local 'spanning_algorithm_class')
stack traceback:
[C]: in function 'assert'
...graphdrawing/lua/pgf/gd/interface/InterfaceToDisplay.lua:213: in function 'pgf.gd.interface.InterfaceToDisplay.resumeGraphDrawingCoroutine'
...graphdrawing/lua/pgf/gd/interface/InterfaceToDisplay.lua:182: in function 'pgf.gd.interface.InterfaceToDisplay.runGraphDrawingAlgorithm'
[\directlua]:1: in main chunk.
which means for some reason line 245 in LayoutPipeline.lua has nil assigned to spanning_algorithm_class :
local spanning_algorithm_class = syntactic_component.options.algorithm_phases["spanning tree computation"]
which suggests somehow my C++ build was not done correctly. Since ogdf is built on top of the C++, it's probably won't work either :(
| 05:15:56 |
some.knowit | * Good news: the C demo is working as expected:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary {examples.c.SimpleDemoC}
\begin{document}
\tikz \graph [fast simple demo layout, fast simple demo radius=1.25cm]
{ a -> b -> c -> d -> e -> a };
\end{document}
Bad news: the C++ demo is crashing:
(/usr/local/texlive/2024/texmf-dist/tex/latex/base/ts1cmr.fd) (/usr/local/texlive/2024/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/local/texlive/2024/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))...graphdrawing/lua/pgf/gd/interface/InterfaceToDisplay.lua:213: ...c/pgf/graphdrawing/lua/pgf/gd/control/LayoutPipeline.lua:247: attempt to index a nil value (local 'spanning_algorithm_class')
stack traceback:
[C]: in function 'assert'
...graphdrawing/lua/pgf/gd/interface/InterfaceToDisplay.lua:213: in function 'pgf.gd.interface.InterfaceToDisplay.resumeGraphDrawingCoroutine'
...graphdrawing/lua/pgf/gd/interface/InterfaceToDisplay.lua:182: in function 'pgf.gd.interface.InterfaceToDisplay.runGraphDrawingAlgorithm'
[\directlua]:1: in main chunk.
which means for some reason line 245 in LayoutPipeline.lua has nil assigned to spanning_algorithm_class :
local spanning_algorithm_class = syntactic_component.options.algorithm_phases["spanning tree computation"]
which suggests somehow my C++ build was not done correctly. Since ogdf is built on top of the C++, it's probably won't work either :(
| 05:16:10 |
some.knowit | * Good news: the C demo is working as expected:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary {examples.c.SimpleDemoC}
\begin{document}
\tikz \graph [fast simple demo layout, fast simple demo radius=1.25cm]
{ a -> b -> c -> d -> e -> a };
\end{document}
Bad news: the C++ demo is crashing:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary {examples.c.SimpleDemoCPlusPlus}
% \usegdlibrary {pgf_gd_examples_c_SimpleDemoCPlusPlus}
\begin{document}
\tikz \graph [fast simple demo layout c++, fast simple demo radius c++=1.25cm]
{ a -> b -> c -> d -> e -> a };
\end{document}
(/usr/local/texlive/2024/texmf-dist/tex/latex/base/ts1cmr.fd) (/usr/local/texlive/2024/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/local/texlive/2024/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))...graphdrawing/lua/pgf/gd/interface/InterfaceToDisplay.lua:213: ...c/pgf/graphdrawing/lua/pgf/gd/control/LayoutPipeline.lua:247: attempt to index a nil value (local 'spanning_algorithm_class')
stack traceback:
[C]: in function 'assert'
...graphdrawing/lua/pgf/gd/interface/InterfaceToDisplay.lua:213: in function 'pgf.gd.interface.InterfaceToDisplay.resumeGraphDrawingCoroutine'
...graphdrawing/lua/pgf/gd/interface/InterfaceToDisplay.lua:182: in function 'pgf.gd.interface.InterfaceToDisplay.runGraphDrawingAlgorithm'
[\directlua]:1: in main chunk.
which means for some reason line 245 in LayoutPipeline.lua has nil assigned to spanning_algorithm_class :
local spanning_algorithm_class = syntactic_component.options.algorithm_phases["spanning tree computation"]
which suggests somehow my C++ build was not done correctly. Since ogdf is built on top of the C++, it's probably won't work either :(
| 05:16:53 |
some.knowit | * Good news: the C demo is working as expected:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary {examples.c.SimpleDemoC}
\begin{document}
\tikz \graph [fast simple demo layout, fast simple demo radius=1.25cm]
{ a -> b -> c -> d -> e -> a };
\end{document}
Bad news: the C++ demo is crashing:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary {examples.c.SimpleDemoCPlusPlus}
\begin{document}
\tikz \graph [fast simple demo layout c++, fast simple demo radius c++=1.25cm]
{ a -> b -> c -> d -> e -> a };
\end{document}
(/usr/local/texlive/2024/texmf-dist/tex/latex/base/ts1cmr.fd) (/usr/local/texlive/2024/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/local/texlive/2024/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))...graphdrawing/lua/pgf/gd/interface/InterfaceToDisplay.lua:213: ...c/pgf/graphdrawing/lua/pgf/gd/control/LayoutPipeline.lua:247: attempt to index a nil value (local 'spanning_algorithm_class')
stack traceback:
[C]: in function 'assert'
...graphdrawing/lua/pgf/gd/interface/InterfaceToDisplay.lua:213: in function 'pgf.gd.interface.InterfaceToDisplay.resumeGraphDrawingCoroutine'
...graphdrawing/lua/pgf/gd/interface/InterfaceToDisplay.lua:182: in function 'pgf.gd.interface.InterfaceToDisplay.runGraphDrawingAlgorithm'
[\directlua]:1: in main chunk.
which means for some reason line 245 in LayoutPipeline.lua has nil assigned to spanning_algorithm_class :
local spanning_algorithm_class = syntactic_component.options.algorithm_phases["spanning tree computation"]
which suggests somehow my C++ build was not done correctly. Since ogdf is built on top of the C++, it's probably won't work either :(
| 05:17:11 |
some.knowit | * Good news: the C demo is working as expected:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary {examples.c.SimpleDemoC}
\begin{document}
\tikz \graph [fast simple demo layout, fast simple demo radius=1.25cm]
{ a -> b -> c -> d -> e -> a };
\end{document}
Bad news: the C++ demo is crashing:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary {examples.c.SimpleDemoCPlusPlus}
\begin{document}
\tikz \graph [fast simple demo layout c++, fast simple demo radius c++=1.25cm]
{ a -> b -> c -> d -> e -> a };
\end{document}
(/usr/local/texlive/2024/texmf-dist/tex/latex/base/ts1cmr.fd) (/usr/local/texlive/2024/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/local/texlive/2024/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))...graphdrawing/lua/pgf/gd/interface/InterfaceToDisplay.lua:213: ...c/pgf/graphdrawing/lua/pgf/gd/control/LayoutPipeline.lua:247: attempt to index a nil value (local 'spanning_algorithm_class')
stack traceback:
[C]: in function 'assert'
...graphdrawing/lua/pgf/gd/interface/InterfaceToDisplay.lua:213: in function 'pgf.gd.interface.InterfaceToDisplay.resumeGraphDrawingCoroutine'
...graphdrawing/lua/pgf/gd/interface/InterfaceToDisplay.lua:182: in function 'pgf.gd.interface.InterfaceToDisplay.runGraphDrawingAlgorithm'
[\directlua]:1: in main chunk.
which means for some reason line 245 in LayoutPipeline.lua has nil assigned to spanning_algorithm_class :
local spanning_algorithm_class = syntactic_component.options.algorithm_phases["spanning tree computation"]
I suspect somehow my C++ build was not done correctly. Since ogdf is built on top of the C++, it's probably won't work either :(
| 05:18:15 |
some.knowit | * Good news: the C demo is working as expected:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary {examples.c.SimpleDemoC}
\begin{document}
\tikz \graph [fast simple demo layout, fast simple demo radius=1.25cm]
{ a -> b -> c -> d -> e -> a };
\end{document}
Bad news: the C++ demo is crashing:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary {examples.c.SimpleDemoCPlusPlus}
\begin{document}
\tikz \graph [fast simple demo layout c++, fast simple demo radius c++=1.25cm]
{ a -> b -> c -> d -> e -> a };
\end{document}
(/usr/local/texlive/2024/texmf-dist/tex/latex/base/ts1cmr.fd) (/usr/local/texlive/2024/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/local/texlive/2024/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))...graphdrawing/lua/pgf/gd/interface/InterfaceToDisplay.lua:213: ...c/pgf/graphdrawing/lua/pgf/gd/control/LayoutPipeline.lua:247: attempt to index a nil value (local 'spanning_algorithm_class')
stack traceback:
[C]: in function 'assert'
...graphdrawing/lua/pgf/gd/interface/InterfaceToDisplay.lua:213: in function 'pgf.gd.interface.InterfaceToDisplay.resumeGraphDrawingCoroutine'
...graphdrawing/lua/pgf/gd/interface/InterfaceToDisplay.lua:182: in function 'pgf.gd.interface.InterfaceToDisplay.runGraphDrawingAlgorithm'
[\directlua]:1: in main chunk.
which means for some reason line 245 in LayoutPipeline.lua has nil assigned to spanning_algorithm_class :
local spanning_algorithm_class = syntactic_component.options.algorithm_phases["spanning tree computation"]
I suspect somehow my C++ build was not done correctly. Since ogdf is built on top of the C++ interface/layer, it's probably won't work either :(
| 05:18:39 |
some.knowit | * Good news: the C demo is working as expected (after putting the *.so files to the right location):
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary {examples.c.SimpleDemoC}
\begin{document}
\tikz \graph [fast simple demo layout, fast simple demo radius=1.25cm]
{ a -> b -> c -> d -> e -> a };
\end{document}
Bad news: the C++ demo is crashing:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary {examples.c.SimpleDemoCPlusPlus}
\begin{document}
\tikz \graph [fast simple demo layout c++, fast simple demo radius c++=1.25cm]
{ a -> b -> c -> d -> e -> a };
\end{document}
(/usr/local/texlive/2024/texmf-dist/tex/latex/base/ts1cmr.fd) (/usr/local/texlive/2024/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/local/texlive/2024/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty (/usr/local/texlive/2024/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))...graphdrawing/lua/pgf/gd/interface/InterfaceToDisplay.lua:213: ...c/pgf/graphdrawing/lua/pgf/gd/control/LayoutPipeline.lua:247: attempt to index a nil value (local 'spanning_algorithm_class')
stack traceback:
[C]: in function 'assert'
...graphdrawing/lua/pgf/gd/interface/InterfaceToDisplay.lua:213: in function 'pgf.gd.interface.InterfaceToDisplay.resumeGraphDrawingCoroutine'
...graphdrawing/lua/pgf/gd/interface/InterfaceToDisplay.lua:182: in function 'pgf.gd.interface.InterfaceToDisplay.runGraphDrawingAlgorithm'
[\directlua]:1: in main chunk.
which means for some reason line 245 in LayoutPipeline.lua has nil assigned to spanning_algorithm_class :
local spanning_algorithm_class = syntactic_component.options.algorithm_phases["spanning tree computation"]
I suspect somehow my C++ build was not done correctly. Since ogdf is built on top of the C++ interface/layer, it's probably won't work either :(
| 05:23:21 |
some.knowit | Turns out I was overly optimistic - the odgf appears to be working!
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary {ogdf.c.SimpleDemoOGDF}
\begin{document}
\tikz \graph [fast simple demo layout ogdf, my radius ogdf=1cm]
{ a -> b -> c -> d -> e -> a };
\end{document}
| 05:32:13 |
some.knowit | * Turns out I was overly pessimistic - the odgf appears to be working!
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary {ogdf.c.SimpleDemoOGDF}
\begin{document}
\tikz \graph [fast simple demo layout ogdf, my radius ogdf=1cm]
{ a -> b -> c -> d -> e -> a };
\end{document}
| 05:32:27 |
some.knowit | * Turns out I was overly pessimistic - the odgf simple demo appears to be working!
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary {ogdf.c.SimpleDemoOGDF}
\begin{document}
\tikz \graph [fast simple demo layout ogdf, my radius ogdf=1cm]
{ a -> b -> c -> d -> e -> a };
\end{document}
| 05:32:37 |