bxt / daglayout Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/daglayout
Automatically exported from code.google.com/p/daglayout
[deleted issue]
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.