Giter Site home page Giter Site logo

dinic-visualization's Introduction

Dinic's Algorithm Visualization

Visualization of Dinic's algorithm to find max flow in graphs

Dependencies

dinic-visualization's People

Contributors

rahul13ramesh avatar red-devilz avatar rgsankar121 avatar vignesh-m avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

dinic-visualization's Issues

complete dinic implementation

iteratively find blocking flow and subtract
maxflow/dinic.py

  • construct residual graph after finding block flow
  • iteratively find new flows
    depends on #2

Graph display enhancements

  • Remove the axes labels if possible.
  • Also show capacity of edges, while finding an augmenting path.
  • While updating using blocking flow, show a comparison of previous and updated graphs

Gui enhancements

  • Show steps before after finding blocking flow
  • Create box showing the total flow, and flow of augmenting path
  • Residual graph, show dotted lines(add weights?)
  • Show current graph(smaller size) at all times
  • Add button to skip the blocking flow(directly display blocking flow without showing iteration for each path)
  • Add a close window button
  • Show complete flow at end
  • polish ui

Resize image on update

The gui doesn't resize the image when its updated.
This is especially visible when showing capacities in the graph, which changes its size slightly

Blocking flow path

In max_flow/block_flow.py , the function that finds blocking flow calls path. Make sure that after path_function, check if ret_path is not empty in order to continue with the loop

Input changes

Input should accept source and sink, modify code elsewhere also appropriately

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.