Giter Site home page Giter Site logo

netgen's Introduction

The following changes have been made:
* Declarations and definitions have been separated between severel header files,
  each one is an individual interface that can be used alone. The new files are
  random.h, where declarations for the portable random generator are made, 
  index.h, the interface for the index lists. The header netgen.h has also been
  repurposed to conform to a more modern style.
* The files random.c, index.c and netgen.c have been refactored using better
  identation (there were identation issues previously), brackets have been used
  to clarify some parts of the source code.
* The file netgen.h no longer holds the main function of the NETGEN C generator.
  The rationale behind this decision is to allow the usage of netgen as an
  interface that can be adapted. The main function is located in the file named
  main.c, that holds only the main function and several macros to make it easy
  to perform some actions.
* Added two directories bin/ and src/. The bin/ is where the generator is put
  by the makefile. The src/ is where all source code is stored. At the root
  directory we now have just the bin/ and src/ directories, the makefile and
  this README.

NO CHANGES HAVE BEEN MADE TO THE SOURCE CODE STRUCTURE: THE NETGEN GENERATOR
WORKS AND GENERATES THE NETWORKS IN EXACTLY THE SAME MANNER AS IN THE ORIGINAL
SOURCE CODE. THE PURPOSE OF THE CHANGES MADE IS JUST TO ELIMINATE SOME
UNNECESSARY OBSCURITY IN THE ORIGINAL SOURCE CODE.

NOTE: The compilation of the file netgen.c produces a lot of warnings with the
current flags set for gcc (-Wall -Wextra). All these warnings are about the
several comparisons between signed and unsigned integer variables. As of now, 
no problem has been found that can damage the overall functionality of the
generator. If needed, remove the flags from the makefile. In the future I may
(given I have the time) correct some of these warnings, always without messing
with the overall code structure.

--------------------------------------------------------------
Bug List
--------------------------------------------------------------
* Generator returns arcs with maximum cost even if the specified percentage
  of arcs with maximum cost is zero.

netgen's People

Contributors

pmdias 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.