Git Product home page Git Product logo

treeviewer's Introduction

TreeViewer

A graphical interface to visualize tree operations, made in OCaml.

What does it do ?

  • It draws tree on an empty canvas, using the official Graphics OCaml library. I'm working on a way to parse trees and heaps from a text file.

Requirements

  • opam : necessary to build executable OCaml code.
  • dune : a composable build system for OCaml. Basically, it manages dependencies for us. You can get it through opam (the OCaml Package Manager) with :
opam install dune
  • Graphics library : since OCaml 4.06, graphics is not part of the stdlib you get by downloading opam anymore. Install it using :
opam install graphics

Installation

  • Clone the repository wherever you want :
git clone https://github.com/Esteban795/TreeViewer.git

How to use it ?

  • After you're done cloning it, head to the directory. There, you can test with the given example if everything is running correctly. First, open a terminal and type
eval $(opam env)

to make sure dune will be detected. You'll need to type this every time you start a new terminal, so avoid killing your terminal each time !

  • Then, you can just run
dune exec ./test/TreeViewer.exe
  • If everything goes according to plan, you should be able to see something this beautiful max_heap : tree

What's left to do ?

  • Known issue : can't represent big trees, for the simple reason that the screen is static and just can't move.
  • Known issue : can't resize without losing the displayed tree. (might have to go the SDL route ?)

treeviewer's People

Contributors

esteban795 avatar

Watchers

 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.