Giter Site home page Giter Site logo

uxn / drag Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bigno78/drag

0.0 0.0 0.0 266 KB

Simple to use header-only C++ library for generating layouts of directed graphs.

License: BSD 3-Clause "New" or "Revised" License

CMake 0.10% Shell 0.32% C++ 99.58%

drag's Introduction

Drag

Drag is a graph drawing library for creating nice looking layouts of directed graphs. I implemented this library for my bachelor's thesis.

What exactly does it do?

Well let me tell you. In a nutshell, you provide a directed graph and the library produces a nice looking layout of that graph in 2D space. However, there is an important thing to note:

  • The library only produces the abstract layout. What does that mean? Well, It means the library calculates the coordinates for all the vertices and control points of the edges (which, for simplicity, are represented as polylines) and that's all it does. Its purpouse is not to produce an image or to provide any styling. It is meant as a backend for such applications.

With that said, a simple application which converts the produced layout into an svg image is bundeled with the library. But it is extremely limited and serves only for demonstration purposes and it is not the main part of this project. If you want to know more about how to use the svg drawer, go here.

What graphs is it suitable for?

It should be used only for directed graphs. In theory one could use it to make a layout of an undirected graph by giving each edge an arbitrary direction. However, the resulting layout wouldn't make much sense and wouldn't convey the information contained in the graph very well.

drag's People

Contributors

bigno78 avatar uxn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.