GithubHelp home page GithubHelp logo

lhogie / grph Goto Github PK

View Code? Open in Web Editor NEW
20.0 6.0 9.0 113.29 MB

Grph is a high-performance Java library for the manipulation of graphs.

Java 89.16% C++ 0.06% TeX 4.93% C 3.26% MATLAB 2.58% CSS 0.01%

grph's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

grph's Issues

Request for expansion in user guide

In the user guide http://www.i3s.unice.fr/~hogie/software/grph/doc/manuals/grph-user-manual.pdf you have written the following. I'm wondering if you could point to an example that finishes your thought at the end?

5.6.5 Parallelism
Modern computers embed a multi-core processor, enabling threads and processes
to run in parallel. In order to take advantage of this parallelism, whenever
possible split the computation in a number of independant jobs that are
executed in parallel, within distinct threads, on the local computer.
Depending on the algorithms, the speed off varies from near-to-zero to
n,nbeing the number of processors/cores available on the computer.
Grph comes with a basic parallelization framework for the execution of a
certain class of algorithms: if an algorithm can be decomposed in routines called
independently on every vertex, it may be invoked by the following code pattern:

NumericalProperty broken with doubles

I might be doing something wrong, but seems to me that NumericalProperty is broken when retrieving numbers as double.

NumericalProperty p = new NumericalProperty("weight");
p.setValue(0, 10);

System.out.println(p.getValueAsDouble(0)); // 4.9E-323
System.out.println(p.getValueAsInt(0)); // 10

The side effect here is that I cannot use Graph.getNeighborsAtMaxDistance because it is using getValueAsDouble internally, so the comparison with maxDistance is always true.

I tested with 1.10.8 which is described on the website as the latest release. I also found a version 4.0.0 which uses long instead of int, but the bug is there too.

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.