GithubHelp home page GithubHelp logo

arcman7.github.io's People

Contributors

arcman7 avatar sueyc50 avatar

Watchers

 avatar  avatar

arcman7.github.io's Issues

task completion and rendered JobNodes are confusing

I've tried your code from your article and got stuck with a specific tree. I don't understand why this demoTree

{
    a: [],
    b: [],
    c: [],
    d: ['b'],
    e: ['c', 'b'],
    f: ['e'],
    g: ['b', 'd'],
    h: ['f', 'c', 'e']
};

draws a graph without JobNode name g and h?

{
  a: JobNode {name: "a", parents: Array(0), childs: Array(0)}
  b: JobNode {name: "b", parents: Array(0), childs: Array(3)}
  c: JobNode {name: "c", parents: Array(0), childs: Array(2)}
  d: JobNode {name: "d", parents: Array(0), childs: Array(1)}
  e: JobNode {name: "e", parents: Array(0), childs: Array(2)}
  f: JobNode {name: "f", parents: Array(0), childs: Array(1)}
  _sudoRoot: JobNode
}

I just changed all simulatedTasks to 1000. Why does [undefined, ...] appears in line 9 and passed to h eventhough task "f" seems never completed but h is completed as stated on line 11?

 1: task " a " completed.
 2: task " b " completed.
 3: results:  ["b"]  passed to task " d "
 4: task " c " completed.
 5: results:  (2) ["c", "b"]  passed to task " e "
 6: task " d " completed.
 7: results:  (2) ["b", "d"]  passed to task " g "
 8: task " e " completed.
 9: results:  (3) [undefined, "c", "e"]  passed to task " h "
10: task " g " completed.
11: task " h " completed.

What is happening here? I can not get ["f", "c", "e"] as a result to be passed to "task h".

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.