Questions tagged [ogdf]

OGDF is a self-contained C++ class library for the automatic layout of diagrams.

OGDF stands both for Open Graph Drawing Framework (the original name) and Open Graph algorithms and Data structures Framework.

OGDF is a self-contained C++ library for graph algorithms, in particular for (but not restricted to) automatic graph drawing. It offers sophisticated algorithms and data structures to use within your own applications or scientific projects.

The library is available under the GNU General Public License.

https://ogdf.uos.de/

16 questions
7
votes
1 answer

C++ - Having problems defining a variable inside main() function

I am trying to define a variable from an external library in C++, Visual Studio 2010. It only works when I put it outside of the main function. This code crashes: #include "StdAfx.h" #include #include…
3
votes
2 answers

OGDF segfault on any GraphAttributes function call

I am just starting with OGDF and try to get a hang of it by running some of the examples that are on the OGDF webpage under How-Tos. My Code compiles, but it segfaults when I try to call a GraphAttributes function on a node. Here my Code: …
nurgan
  • 309
  • 1
  • 4
  • 22
3
votes
2 answers

how to successfully run a c++ file which uses ogdf libraries

I compiled the file (source.cpp) using the command g++ -I/home/hrishikesh/Desktop/OGDF-snapshot/include -O2 source.cpp -o mytest -L/home/hrishikesh/Desktop/OGDF-snapshot/_release -lOGDF -lCOIN -pthread and it got compiled successfully without giving…
hrishi
  • 443
  • 2
  • 12
3
votes
2 answers

gcc Linker and OGDF "undefined reference to `ogdf::Initialization::Initialization()'"

I am trying to get OGDF working to see if it is suitable for my project, but I am having trouble with a sample program. I am trying to compile this example program: #include #include #include…
jsj
  • 9,019
  • 17
  • 58
  • 103
2
votes
1 answer

Laying out edges with OGDF?

Is it possible to lay out edges in OGDF? Does OGDF even include routing edges? Because I've been wading through the docs for days and still havent found out how to do so. Whats particularly interesting is the joining point between an edge and a…
TeaOverflow
  • 2,468
  • 3
  • 28
  • 40
2
votes
0 answers

Run-Time Check Failure #2 when instantiating OGDF Graph object in VisualStudio 2013

I've just installed the OGDF library for graph visualization using the guide here. I built, compiled, and linked the library to a small VisualStudio project, however when I attempt to instantiate a Graph, VisualStudio breaks with the error:…
Chris Abbott
  • 316
  • 3
  • 9
2
votes
2 answers

How to direct an edge in OGDF?

I have a simple UNDIRECTED Graph G, and want to reverse an edge if a certain condition is true. The following code gives an error that the EdgeElement constructor is inaccessible: if(dfsNum[source->index()]>dfsNum[target->index()]){ EdgeElement…
divs1210
  • 690
  • 1
  • 8
  • 16
1
vote
1 answer

Setting node bounding box size in OGDF

I'm attempting to layout and visualise a code flow graph in Qt using the OGDF library and the Sugiyama layout. The version I'm using is v2020.02, which should be the latest at the time of writing. My issue: When creating nodes, I set them to various…
Dex
  • 164
  • 1
  • 2
  • 18
1
vote
1 answer

OGDF PQTree: How to add leaves?

Using OGDF I've created and initialized a PQTree. Initialization was done with 3 edges, where node a is root, b, c and d are Leaves of a. Now, after calculation, I need to add the leaves e, d and f to b as leaves. But problem is, b is a leaf, so…
Rashad2985
  • 11
  • 4
1
vote
1 answer

Maintaining GraphAttributes with GraphCopy::initByCC in OGDF

I am trying to use OGDF to perform some processing on graphs loaded from GML files. These graphs are only meaningful if the node labels are maintained. Unfortunately, OGDF does not make it easy to keep node attributes like labels, since they are…
seanmk
  • 1,934
  • 15
  • 28
1
vote
1 answer

Accessing protected member function ! Segmentation fault (core dumped)

I am trying to use OGDF C++ library for a project and want to use a protected member function of a class of this library. As can't access protected members directly outside class or derived class; to use protected method of Balloon Layout class I…
Shaifali
  • 309
  • 3
  • 9
1
vote
1 answer

Accessing protected member function in derived class — Segmentation fault

I am trying to use OGDF C++ library for a project and want to use a protected member function of a class of this library. I can't access protected members directly outside class or derived class, so to use protected method of Balloon Layout class I…
Shaifali
  • 309
  • 3
  • 9
1
vote
1 answer

Changing node color OGDF Library

I am trying to change the node color using the following code but getting Segmentation fault. I am using the latest OGDF snapshot. Graph G; GraphAttributes GA(G, GraphAttributes::nodeGraphics | GraphAttributes::edgeGraphics ); node…
Shahzad
  • 1,999
  • 6
  • 35
  • 44
1
vote
1 answer

Undefined symbols for architecture in static library (OGDF)

I'm using Xcode to add OGDF to my C++ project. It's a static .a library, and after compiling it from sources, i've successfully add it to compile sources, set the right search paths, and everything goes right until i include for,…
Nikita Pestrov
  • 5,876
  • 4
  • 31
  • 66
0
votes
0 answers

Face recognition in planar graphs using OGDF library

It's been almost 2 weeks since I started to think about solution to that problem, as u probably see, without success ;) Recently I was experimenting with OGDF function for planar graphs, such as "computeFaces" in "ConstCombinatorialEmbedding" or…
1
2