Skip to main content

A python package for visualizing data structures

Project description

VisDaS

Visualizing Data Structure

A python package for visualizing data structures and its contents

Data structures form an essential part of computer science. A data structure helps in organizing, managing and storing data in a computer for efficient access and modification.

Visualization of data structure makes it easy to understand the data structure and how elements of that data structure are connected to each other.

This package helps in providing an easy way to get an image of visualization of the data structure and its elements. You can also perform basic operations on your array to understand the result of the function

It provides a way to visualize the contents of data structure and how the elements of data structure are related to each other.

The package currently supports visualization of following data structures :

Examples of How To Use

from visdas import Array

arr = Array([10,15,20,25])
arr.insert(30)
arr.generate("array.png")

array.png

array

Function Description

Array

  • get()

    Returns the array

    arr = Array([100,200,300])
    print(arr.get())
    
  • insert(element,index)

    Inserts an element at given index. If the index is not specified then it appends the element to end of array.

    arr = Array()
    arr.insert(30)
    # Appends 30 to end of array
    print(arr.get())
    # [30]
    arr.insert(0,10)
    # Inserts 10 at the index 0 of array
    print(arr.get())
    # [10,30]
    
  • remove(element)

    Removes the first occurence of an element from the array

    arr = Array([10,20,30,40])
    arr.remove(30)
    # Removes the first occurence of 30 
    print(arr.get())
    # [10,20,40]
    
  • len()

    Returns the length of array

    arr = Array([12,14,16])
    print(arr.len())
    # 3
    
  • generate()

    Generates the image of array with specifies parameters

    arr = Array([12,14,16])
    arr.generate("myArray.png","black","white")
    

    myarray

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

visdas-0.0.1.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

visdas-0.0.1-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page