Code Monkey home page Code Monkey logo

simplex-tree's Introduction

Simplex tree

This library contains the implementation of Simplex Tree data structure which is used to store the simplicial complex. The implementation is completely based on the research paper "The Simplex Tree: An Efficient Data Structure for General Simplicial Complexes" by Jean-Daniel Boissonnat, Clément Maria (https://hal.inria.fr/file/index/docid/707901/filename/RR-7993.pdf)

image

About Project

This project is a part of coursework E0 207 : Computational Topology : Theory and Applications offered at CSA, Indian Institute of Science.

Installation

pip install pytopology

Example Usage

from pytopology import SimplexTree

simp = SimplexTree()
simp.insert([1,2,3],4.)
simp.printTree()

Output

Simplex: [1] Filtration value : 2.0
Simplex: [1, 2] Filtration value : 3.0
Simplex: [1, 2, 3] Filtration value : 4.0
Simplex: [1, 3] Filtration value : 4.0
Simplex: [2] Filtration value : 3.0
Simplex: [2, 3] Filtration value : 4.0
Simplex: [3] Filtration value : 4.0

Visualizing the Simplex

from pytopology import SimplexTree

simp = SimplexTree()
sim.insert([1, 2, 3])
sim.insert([2, 3, 4, 5])
sim.insert([6, 7, 9])
sim.insert([7, 8])
sim.insert([10])
simp.draw_simplex3D()

image image image image

Operations on Simplicial Complex

  • Insert
  • Find (Query)
  • Boundary
  • Print
  • Filtration (with recursive propagation)
  • Visualization
  • Get Dimension
  • NumVertices, NumSimplices, Skeleton
  • CoFace, Star, Link

Contributors

simplex-tree's People

Contributors

ashishkankal avatar karan25gupta avatar vivek1kerala7 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.