Giter Club home page Giter Club logo

daglayout's People

Watchers

 avatar  avatar

daglayout's Issues

Additional methods to implement on Vertex class apart from Comparable

Hi Rodrego, 
What methods does one need to override and implement in a class in order to
use it as a Vertex in DAGLayout?

I have overrides for equals and hashCode and implement compareTo.
But still the compiler gives me 'type parameter X is is not within its
bound' with a decleration like 
DAGLayout<X,String> layout= new DAGLayout<X,String>();

What am I missing?
using Java 1.6 

Original issue reported on code.google.com by [email protected] on 7 Jan 2009 at 3:47

A bug for the way out condition from a loop in assignLayers

    protected void assignLayers(Virtualizable<V> v, Layer<V> layer) {

        int previousLayerOfNode;
        int thisLevel = layer.getLevel();
        layer.add(v);
        this.vertexLevel.put(v, thisLevel);

        for (Virtualizable<V> child : this.virtualGraph.getSuccessors(v)) {
            if (this.vertexLevel.containsKey(child)) {
                previousLayerOfNode = this.vertexLevel.get(child);
                if (thisLevel >= previousLayerOfNode) {
                    layer.getLayerOnLevel(previousLayerOfNode).remove(child);
                    this.vertexLevel.remove(child);
                    // When calling assignLayers again, all the descendants of
                    // this node will be reassigned
                    // FIXME: This algorithm is not efficient at all!
                } else {
                    /*
                     * We stop the iteration if the child is already in a level
                     * bigger than this one
                     */
                  //return;  <- Wrong
                    continue;
                }
            }
            assignLayers(child, layer.getNextLayer(true));
        }
    }

Original issue reported on code.google.com by [email protected] on 2 Feb 2009 at 8:14

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.